blob: 7b983c17a4afc975f83302eb53e588d8662d25f3 [file] [log] [blame]
Joey Armstrong4de98b72023-02-09 14:51:38 -05001# -*- makefile -*-
2# -----------------------------------------------------------------------
Joey Armstrong449ce7a2023-07-18 18:32:24 -04003# Copyright 2017-2023 Open Networking Foundation (ONF) and the ONF Contributors
Joey Armstrong4de98b72023-02-09 14:51:38 -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.
Joey Armstrong449ce7a2023-07-18 18:32:24 -040016# -----------------------------------------------------------------------
17# SPDX-FileCopyrightText: 2017-2023 Open Networking Foundation (ONF) and the ONF Contributors
Joey Armstrong4de98b72023-02-09 14:51:38 -050018# SPDX-License-Identifier: Apache-2.0
19# -----------------------------------------------------------------------
Joey Armstrong449ce7a2023-07-18 18:32:24 -040020# https://gerrit.opencord.org/plugins/gitiles/onf-make
21# ONF.makefiles.include.version = 1.1
22# -----------------------------------------------------------------------
23
24ifndef mk-include--onf-make # single-include guard macro
Joey Armstrong4de98b72023-02-09 14:51:38 -050025
26$(if $(DEBUG),$(warning ENTER))
27
Joey Armstrong449ce7a2023-07-18 18:32:24 -040028## -----------------------------------------------------------------------
29## Define vars based on relative import (normalize symlinks)
Joey Armstrongb5a5e8c2023-09-20 12:05:03 -040030## Usage: include makefiles-orig/onf/include.mk
Joey Armstrong449ce7a2023-07-18 18:32:24 -040031## -----------------------------------------------------------------------
32onf-mk-abs ?= $(abspath $(lastword $(MAKEFILE_LIST)))
33onf-mk-top := $(subst /include.mk,$(null),$(onf-mk-abs))
34ONF_MAKEDIR := $(onf-mk-top)
Joey Armstrong4de98b72023-02-09 14:51:38 -050035
Joey Armstrongb5a5e8c2023-09-20 12:05:03 -040036TOP ?= $(patsubst %/makefiles-orig/include.mk,%,$(onf-mk-abs))
Joey Armstrong4de98b72023-02-09 14:51:38 -050037
Joey Armstrong449ce7a2023-07-18 18:32:24 -040038include $(ONF_MAKEDIR)/consts.mk
39include $(ONF_MAKEDIR)/help/include.mk # render target help
40include $(ONF_MAKEDIR)/utils/include.mk # dependency-less helper macros
41include $(ONF_MAKEDIR)/etc/include.mk # banner macros
42include $(ONF_MAKEDIR)/commands/include.mk # Tools and local installers
Joey Armstrong4de98b72023-02-09 14:51:38 -050043
Joey Armstrong449ce7a2023-07-18 18:32:24 -040044include $(ONF_MAKEDIR)/virtualenv.mk# # lint-{jjb,python} depends on venv
45include $(ONF_MAKEDIR)/patches/include.mk# # Patch when python 3.10+ in use
46include $(ONF_MAKEDIR)/lint/include.mk
Joey Armstrong4de98b72023-02-09 14:51:38 -050047
Joey Armstrong449ce7a2023-07-18 18:32:24 -040048include $(ONF_MAKEDIR)/gerrit/include.mk
49include $(ONF_MAKEDIR)/git/include.mk
50include $(ONF_MAKEDIR)/jjb/include.mk
Joey Armstrong64b82492023-06-01 17:34:39 -040051
Joey Armstrong449ce7a2023-07-18 18:32:24 -040052$(if $(USE-VOLTHA-RELEASE-MK),\
53 $(eval include $(ONF_MAKEDIR)/release/include.mk))
54
55include $(ONF_MAKEDIR)/todo.mk
56include $(ONF_MAKEDIR)/help/variables.mk
57
58##---------------------##
59##---] ON_DEMAND [---##
60##---------------------##
61$(if $(USE-ONF-GERRIT-MK),$(eval include $(ONF_MAKEDIR)/gerrit/include.mk))
62$(if $(USE-ONF-DOCKER-MK),$(eval include $(ONF_MAKEDIR)/docker/include.mk))
63
64##-------------------##
65##---] TARGETS [---##
66##-------------------##
67include $(ONF_MAKEDIR)/targets/include.mk # clean, sterile
Joey Armstrong64b82492023-06-01 17:34:39 -040068
Joey Armstrong4de98b72023-02-09 14:51:38 -050069$(if $(DEBUG),$(warning LEAVE))
70
Joey Armstrong449ce7a2023-07-18 18:32:24 -040071mk-include--onf-make := true
72
73endif # mk-include--onf-make
74
Joey Armstrong4de98b72023-02-09 14:51:38 -050075# [EOF]