blob: 4cd305572a712439bc8a5c6ceacb0e8f171b4af7 [file] [log] [blame]
Joey Armstrong36c9bcd2023-04-05 19:05:56 -04001# -*- makefile -*-
2# -----------------------------------------------------------------------
Joey Armstrong2c039362024-02-04 18:51:52 -05003# Copyright 2017-2024 Open Networking Foundation (ONF) and the ONF Contributors
Joey Armstrong36c9bcd2023-04-05 19:05:56 -04004#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16#
Joey Armstrong2c039362024-02-04 18:51:52 -050017# SPDX-FileCopyrightText: 2024 Open Networking Foundation (ONF) and the ONF Contributors
Joey Armstrong36c9bcd2023-04-05 19:05:56 -040018# SPDX-License-Identifier: Apache-2.0
19# -----------------------------------------------------------------------
20
21$(if $(DEBUG),$(warning ENTER))
22
Joey Armstrong36c9bcd2023-04-05 19:05:56 -040023## -----------------------------------------------------------------------
Joey Armstrong96bcf1b2023-06-27 14:49:40 -040024## Define vars based on relative import (normalize symlinks)
25## Usage: include makefiles/onf/include.mk
Joey Armstrong36c9bcd2023-04-05 19:05:56 -040026## -----------------------------------------------------------------------
Joey Armstrong96bcf1b2023-06-27 14:49:40 -040027onf-mk-abs ?= $(abspath $(lastword $(MAKEFILE_LIST)))
28onf-mk-top := $(subst /include.mk,$(null),$(onf-mk-abs))
29ONF_MAKEDIR := $(onf-mk-top)
Joey Armstrong36c9bcd2023-04-05 19:05:56 -040030
Joey Armstrong96bcf1b2023-06-27 14:49:40 -040031MAKEDIR ?= $(ONF_MAKEDIR)# # Two dirs needed, local and common
32
33include $(ONF_MAKEDIR)/consts.mk
34include $(ONF_MAKEDIR)/help/include.mk # render target help
35include $(ONF_MAKEDIR)/utils/include.mk # dependency-less helper macros
36include $(ONF_MAKEDIR)/etc/include.mk # banner macros
37
38include $(ONF_MAKEDIR)/virtualenv.mk# # lint-{jjb,python} depends on venv
39
40include $(ONF_MAKEDIR)/lint/include.mk
41
42# include $(ONF_MAKEDIR)/git-submodules.mk
43# include $(ONF_MAKEDIR)/gerrit/include.mk
44include $(ONF_MAKEDIR)/golang/include.mk
45
46include $(ONF_MAKEDIR)/todo.mk
47include $(ONF_MAKEDIR)/help/variables.mk
48
49##---------------------##
50##---] ON_DEMAND [---##
51##---------------------##
52$(if $(USE_DOCKER_MK),$(eval $(ONF_MAKEDIR)/docker/include.mk))
53
54##-------------------##
55##---] TARGETS [---##
56##-------------------##
57include $(ONF_MAKEDIR)/targets/clean.mk
58# include $(ONF_MAKEDIR)/targets/check.mk
59include $(ONF_MAKEDIR)/targets/sterile.mk
60# include $(ONF_MAKEDIR)/targets/test.mk
Joey Armstrong36c9bcd2023-04-05 19:05:56 -040061
62$(if $(DEBUG),$(warning LEAVE))
63
64# [EOF]