blob: 99b3b08ee46a8a2a7c640c55c399d02ad419a4f5 [file] [log] [blame]
Joey Armstrongf9bffdf2022-12-27 07:05:28 -05001# -*- makefile -*-
2# -----------------------------------------------------------------------
Joey Armstrong11f5a572024-01-12 19:11:32 -05003# Copyright 2022-2024 Open Networking Foundation (ONF) and the ONF Contributors
Joey Armstrongf9bffdf2022-12-27 07:05:28 -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 Armstrong11f5a572024-01-12 19:11:32 -050017# SPDX-FileCopyrightText: 2024 Open Networking Foundation (ONF) and the ONF Contributors
Joey Armstrongf9bffdf2022-12-27 07:05:28 -050018# SPDX-License-Identifier: Apache-2.0
19# -----------------------------------------------------------------------
Joey Armstrong3f0e2422023-07-05 18:25:41 -040020# https://gerrit.opencord.org/plugins/gitiles/onf-make
21# ONF.makefile.version = 1.0
22# -----------------------------------------------------------------------
23
Joey Armstrong3f0e2422023-07-05 18:25:41 -040024## -----------------------------------------------------------------------
25## Define vars based on relative import (normalize symlinks)
26## Usage: include makefiles/onf/include.mk
27## -----------------------------------------------------------------------
28onf-mk-abs ?= $(abspath $(lastword $(MAKEFILE_LIST)))
29onf-mk-top := $(subst /include.mk,$(null),$(onf-mk-abs))
30ONF_MAKEDIR := $(onf-mk-top)
Joey Armstrongf9bffdf2022-12-27 07:05:28 -050031
Joey Armstrong3f0e2422023-07-05 18:25:41 -040032include $(ONF_MAKEDIR)/consts.mk
33include $(ONF_MAKEDIR)/help.mk
34# include $(ONF_MAKEDIR)/help/include.mk # render target help
35# include $(ONF_MAKEDIR)/utils/include.mk # dependency-less helper macros
36include $(ONF_MAKEDIR)/etc/include.mk # banner macros
37
38# include $(ONF_MAKEDIR)/etc/commands.mk # Tools and local installers
39
40include $(ONF_MAKEDIR)/virtualenv.mk# # lint-{jjb,python} depends on venv
41# include $(ONF_MAKEDIR)/lint/include.mk
42# include $(ONF_MAKEDIR)/git-submodules.mk
Joey Armstronga3b7c592023-12-11 17:56:05 -050043include $(ONF_MAKEDIR)/golang/include.mk
Joey Armstrong3f0e2422023-07-05 18:25:41 -040044# include $(ONF_MAKEDIR)/gerrit/include.mk
45
46include $(ONF_MAKEDIR)/todo.mk
47# include $(ONF_MAKEDIR)/help/variables.mk
48
49##---------------------##
50##---] ON_DEMAND [---##
51##---------------------##
52$(if $(USE_DOCKER_MK),$(eval include $(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 Armstrongf9bffdf2022-12-27 07:05:28 -050061
62$(if $(DEBUG),$(warning LEAVE))
63
Joey Armstrongf9bffdf2022-12-27 07:05:28 -050064# [EOF]