Joey Armstrong | 0205d33 | 2023-04-11 17:29:23 -0400 | [diff] [blame] | 1 | # -*- makefile -*- |
| 2 | # ----------------------------------------------------------------------- |
Joey Armstrong | 1e07f88 | 2023-07-08 19:28:49 -0400 | [diff] [blame] | 3 | # Copyright 2022-2023 Open Networking Foundation (ONF) and the ONF Contributors |
Joey Armstrong | 0205d33 | 2023-04-11 17:29:23 -0400 | [diff] [blame] | 4 | # |
| 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 |
Joey Armstrong | 7ad5c36 | 2023-07-09 19:10:16 -0400 | [diff] [blame] | 15 | # limitations under the License. |
Joey Armstrong | 1e07f88 | 2023-07-08 19:28:49 -0400 | [diff] [blame] | 16 | # |
| 17 | # SPDX-FileCopyrightText: 2022-2023 Open Networking Foundation (ONF) and the ONF Contributors |
Joey Armstrong | 7ad5c36 | 2023-07-09 19:10:16 -0400 | [diff] [blame] | 18 | # SPDX-License-Identifier: Apache-2.0 |
| 19 | # ----------------------------------------------------------------------- |
| 20 | # https://gerrit.opencord.org/plugins/gitiles/onf-make |
Joey Armstrong | 1e07f88 | 2023-07-08 19:28:49 -0400 | [diff] [blame] | 21 | # ONF.makefile.version = 1.0 |
Joey Armstrong | 7ad5c36 | 2023-07-09 19:10:16 -0400 | [diff] [blame] | 22 | # ----------------------------------------------------------------------- |
| 23 | |
| 24 | ifndef mk-include--onf-make # single-include guard macro |
Joey Armstrong | a689034 | 2023-06-01 17:07:51 -0400 | [diff] [blame] | 25 | |
Joey Armstrong | 0205d33 | 2023-04-11 17:29:23 -0400 | [diff] [blame] | 26 | $(if $(DEBUG),$(warning ENTER)) |
| 27 | |
Joey Armstrong | 7ad5c36 | 2023-07-09 19:10:16 -0400 | [diff] [blame] | 28 | ## ----------------------------------------------------------------------- |
| 29 | ## Define vars based on relative import (normalize symlinks) |
| 30 | ## Usage: include makefiles/onf/include.mk |
| 31 | ## ----------------------------------------------------------------------- |
| 32 | onf-mk-abs ?= $(abspath $(lastword $(MAKEFILE_LIST))) |
| 33 | onf-mk-top := $(subst /include.mk,$(null),$(onf-mk-abs)) |
| 34 | ONF_MAKEDIR := $(onf-mk-top) |
Joey Armstrong | 0205d33 | 2023-04-11 17:29:23 -0400 | [diff] [blame] | 35 | |
Joey Armstrong | 7ad5c36 | 2023-07-09 19:10:16 -0400 | [diff] [blame] | 36 | TOP ?= $(patsubst %/makefiles/include.mk,%,$(onf-mk-abs)) |
Joey Armstrong | 0205d33 | 2023-04-11 17:29:23 -0400 | [diff] [blame] | 37 | |
Joey Armstrong | 7ad5c36 | 2023-07-09 19:10:16 -0400 | [diff] [blame] | 38 | include $(ONF_MAKEDIR)/consts.mk |
| 39 | include $(ONF_MAKEDIR)/help/include.mk # render target help |
| 40 | include $(ONF_MAKEDIR)/utils/include.mk # dependency-less helper macros |
| 41 | include $(ONF_MAKEDIR)/etc/include.mk # banner macros |
| 42 | include $(ONF_MAKEDIR)/commands/include.mk # Tools and local installers |
Joey Armstrong | 42f4ce6 | 2023-06-09 12:56:48 -0400 | [diff] [blame] | 43 | |
Joey Armstrong | 7ad5c36 | 2023-07-09 19:10:16 -0400 | [diff] [blame] | 44 | include $(ONF_MAKEDIR)/virtualenv.mk# # lint-{jjb,python} depends on venv |
| 45 | include $(ONF_MAKEDIR)/lint/include.mk |
Joey Armstrong | 0205d33 | 2023-04-11 17:29:23 -0400 | [diff] [blame] | 46 | |
Joey Armstrong | 7ad5c36 | 2023-07-09 19:10:16 -0400 | [diff] [blame] | 47 | include $(ONF_MAKEDIR)/gerrit/include.mk |
| 48 | include $(ONF_MAKEDIR)/git/include.mk |
| 49 | include $(ONF_MAKEDIR)/jjb/include.mk |
Joey Armstrong | 0205d33 | 2023-04-11 17:29:23 -0400 | [diff] [blame] | 50 | |
Joey Armstrong | 7ad5c36 | 2023-07-09 19:10:16 -0400 | [diff] [blame] | 51 | $(if $(USE-VOLTHA-RELEASE-MK),\ |
| 52 | $(eval include $(ONF_MAKEDIR)/release/include.mk)) |
Joey Armstrong | a689034 | 2023-06-01 17:07:51 -0400 | [diff] [blame] | 53 | |
Joey Armstrong | 7ad5c36 | 2023-07-09 19:10:16 -0400 | [diff] [blame] | 54 | include $(ONF_MAKEDIR)/todo.mk |
| 55 | include $(ONF_MAKEDIR)/help/variables.mk |
Joey Armstrong | d26858f | 2023-07-08 15:52:16 -0400 | [diff] [blame] | 56 | |
Joey Armstrong | 7ad5c36 | 2023-07-09 19:10:16 -0400 | [diff] [blame] | 57 | ##---------------------## |
| 58 | ##---] ON_DEMAND [---## |
| 59 | ##---------------------## |
| 60 | $(if $(USE-ONF-GERRIT-MK),$(eval include $(ONF_MAKEDIR)/gerrit/include.mk)) |
| 61 | $(if $(USE-ONF-DOCKER-MK),$(eval include $(ONF_MAKEDIR)/docker/include.mk)) |
Joey Armstrong | d26858f | 2023-07-08 15:52:16 -0400 | [diff] [blame] | 62 | |
Joey Armstrong | 7ad5c36 | 2023-07-09 19:10:16 -0400 | [diff] [blame] | 63 | ##-------------------## |
| 64 | ##---] TARGETS [---## |
| 65 | ##-------------------## |
| 66 | include $(ONF_MAKEDIR)/targets/include.mk # clean, sterile |
Joey Armstrong | 0205d33 | 2023-04-11 17:29:23 -0400 | [diff] [blame] | 67 | |
| 68 | $(if $(DEBUG),$(warning LEAVE)) |
| 69 | |
Joey Armstrong | 7ad5c36 | 2023-07-09 19:10:16 -0400 | [diff] [blame] | 70 | mk-include--onf-make := true |
| 71 | |
| 72 | endif # mk-include--onf-make |
| 73 | |
Joey Armstrong | 0205d33 | 2023-04-11 17:29:23 -0400 | [diff] [blame] | 74 | # [EOF] |