blob: 79c2aafa6815db1fd34449ca479a7f5c684fdd0f [file] [log] [blame]
Joey Armstrongb085c502023-01-17 13:56:24 -05001# -*- makefile -*-
2# -----------------------------------------------------------------------
Joey Armstrong9cdee9f2024-01-03 04:56:14 -05003# Copyright 2022-2024 Open Networking Foundation (ONF) and the ONF Contributors
Joey Armstrongb085c502023-01-17 13:56:24 -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#
Joey Armstrong7f8436c2023-07-09 20:23:27 -040017# SPDX-FileCopyrightText: 2022-2023 Open Networking Foundation (ONF) and the ONF Contributors
Joey Armstrongb085c502023-01-17 13:56:24 -050018# SPDX-License-Identifier: Apache-2.0
19# -----------------------------------------------------------------------
Joey Armstrong7f8436c2023-07-09 20:23:27 -040020# https://gerrit.opencord.org/plugins/gitiles/onf-make
21# ONF.makefile.version = 1.0
22# -----------------------------------------------------------------------
23
24ifndef mk-include--onf-make # single-include guard macro
Joey Armstrongb085c502023-01-17 13:56:24 -050025
26$(if $(DEBUG),$(warning ENTER))
27
Joey Armstrongb085c502023-01-17 13:56:24 -050028## -----------------------------------------------------------------------
Joey Armstrong7f8436c2023-07-09 20:23:27 -040029## Define vars based on relative import (normalize symlinks)
30## Usage: include makefiles/onf/include.mk
Joey Armstrongb085c502023-01-17 13:56:24 -050031## -----------------------------------------------------------------------
Joey Armstrong7f8436c2023-07-09 20:23:27 -040032onf-mk-abs ?= $(abspath $(lastword $(MAKEFILE_LIST)))
33onf-mk-top := $(subst /include.mk,$(null),$(onf-mk-abs))
34ONF_MAKEDIR := $(onf-mk-top)
Joey Armstrongb085c502023-01-17 13:56:24 -050035
Joey Armstrong7f8436c2023-07-09 20:23:27 -040036TOP ?= $(patsubst %/makefiles/include.mk,%,$(onf-mk-abs))
37
Joey Armstrong7cd92a12024-05-01 17:47:58 -040038include $(legacy-mk)/consts.mk
39include $(legacy-mk)/help/include.mk # render target help
40include $(legacy-mk)/utils/include.mk # dependency-less helper macros
41include $(legacy-mk)/etc/include.mk # banner macros
42include $(legacy-mk)/commands/include.mk # Tools and local installers
Joey Armstrong7f8436c2023-07-09 20:23:27 -040043
Joey Armstrong7cd92a12024-05-01 17:47:58 -040044include $(legacy-mk)/virtualenv.mk# # lint-{jjb,python} depends on venv
45include $(legacy-mk)/lint/include.mk
Joey Armstrong7f8436c2023-07-09 20:23:27 -040046
Joey Armstrong7cd92a12024-05-01 17:47:58 -040047include $(legacy-mk)/gerrit/include.mk
48include $(legacy-mk)/git/include.mk
49include $(legacy-mk)/jjb/include.mk
Joey Armstrong7f8436c2023-07-09 20:23:27 -040050
Joey Armstrong7cd92a12024-05-01 17:47:58 -040051# include $(legacy-mk)/release/include.mk
Joey Armstrong7f8436c2023-07-09 20:23:27 -040052
Joey Armstrong7cd92a12024-05-01 17:47:58 -040053include $(legacy-mk)/todo.mk
54include $(legacy-mk)/help/variables.mk
Joey Armstrong7f8436c2023-07-09 20:23:27 -040055
56##---------------------##
57##---] ON_DEMAND [---##
58##---------------------##
Joey Armstrong7cd92a12024-05-01 17:47:58 -040059$(if $(USE-ONF-GERRIT-MK),$(eval include $(legacy-mk)/gerrit/include.mk))
60$(if $(USE-ONF-DOCKER-MK),$(eval include $(legacy-mk)/docker/include.mk))
Joey Armstrong7f8436c2023-07-09 20:23:27 -040061
62##-------------------##
63##---] TARGETS [---##
64##-------------------##
Joey Armstrong7cd92a12024-05-01 17:47:58 -040065include $(legacy-mk)/targets/include.mk # clean, sterile, tox
Joey Armstrongb085c502023-01-17 13:56:24 -050066
67$(if $(DEBUG),$(warning LEAVE))
68
Joey Armstrong7f8436c2023-07-09 20:23:27 -040069mk-include--onf-make := true
70
71endif # mk-include--onf-make
72
Joey Armstrongb085c502023-01-17 13:56:24 -050073# [EOF]