blob: c4491179038611f237836144b2bd8a7d6f8b83b8 [file] [log] [blame]
Joey Armstrong57bd70f2023-01-12 05:25:51 -05001# -*- makefile -*-
2# -----------------------------------------------------------------------
Joey Armstrong04cdd9f2023-06-09 15:18:23 -04003# Copyright 2022-2023 Open Networking Foundation (ONF) and the ONF Contributors
Joey Armstrong57bd70f2023-01-12 05:25:51 -05004#
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#
17# SPDX-FileCopyrightText: 2022-2023 Open Networking Foundation (ONF) and the ONF Contributors
18# SPDX-License-Identifier: Apache-2.0
19# -----------------------------------------------------------------------
Joey Armstrong04cdd9f2023-06-09 15:18:23 -040020# https://gerrit.opencord.org/plugins/gitiles/onf-make
21# ONF.makefile.version = 1.0
22# -----------------------------------------------------------------------
Joey Armstrong57bd70f2023-01-12 05:25:51 -050023
Joey Armstrong04cdd9f2023-06-09 15:18:23 -040024$(if $(DEBUG),$(warning ENTER))
Joey Armstrong57bd70f2023-01-12 05:25:51 -050025
Joey Armstrong04cdd9f2023-06-09 15:18:23 -040026## -----------------------------------------------------------------------
27## Define vars based on relative import (normalize symlinks)
28## Usage: include makefiles/onf/include.mk
29## -----------------------------------------------------------------------
30onf-mk-abs ?= $(abspath $(lastword $(MAKEFILE_LIST)))
31onf-mk-top := $(subst /include.mk,$(null),$(onf-mk-abs))
32ONF_MAKEDIR := $(onf-mk-top)
Joey Armstrong57bd70f2023-01-12 05:25:51 -050033
Joey Armstrong04cdd9f2023-06-09 15:18:23 -040034MAKEDIR ?= $(ONF_MAKEDIR)# # Two dirs needed, local and common
35
36include $(ONF_MAKEDIR)/consts.mk
37include $(ONF_MAKEDIR)/help/include.mk # render target help
38include $(ONF_MAKEDIR)/utils/include.mk # dependency-less helper macros
39include $(ONF_MAKEDIR)/etc/include.mk # banner macros
40
41include $(ONF_MAKEDIR)/commands/include.mk # Tools and local installers
42
43include $(ONF_MAKEDIR)/virtualenv.mk# # lint-{jjb,python} depends on venv
44include $(ONF_MAKEDIR)/lint/include.mk
45# include $(ONF_MAKEDIR)/git-submodules.mk
46# include $(ONF_MAKEDIR)/gerrit/include.mk
47
48include $(ONF_MAKEDIR)/todo.mk
49include $(ONF_MAKEDIR)/help/variables.mk
50
51##---------------------##
52##---] ON_DEMAND [---##
53##---------------------##
54$(if $(USE_DOCKER_MK),$(eval $(ONF_MAKEDIR)/docker/include.mk))
55
56##-------------------##
57##---] TARGETS [---##
58##-------------------##
59include $(ONF_MAKEDIR)/targets/clean.mk
60# include $(ONF_MAKEDIR)/targets/check.mk
61include $(ONF_MAKEDIR)/targets/sterile.mk
62# include $(ONF_MAKEDIR)/targets/test.mk
63
64$(if $(DEBUG),$(warning LEAVE))
65
66## --------------------------------------------------------------------------
67## structure to support pre/post target handling w/o inlining in Makefile (?)
68## --------------------------------------------------------------------------
69## include makefiles/include.mk
70## include makefiles/main/enter.mk
71## [... include *.mk ...]
72## include makefiles/main/leave.mk
Joey Armstrong57bd70f2023-01-12 05:25:51 -050073
74# [EOF]