Joey Armstrong | 36c9bcd | 2023-04-05 19:05:56 -0400 | [diff] [blame] | 1 | # -*- makefile -*- |
| 2 | # ----------------------------------------------------------------------- |
Joey Armstrong | 2c03936 | 2024-02-04 18:51:52 -0500 | [diff] [blame] | 3 | # Copyright 2017-2024 Open Networking Foundation (ONF) and the ONF Contributors |
Joey Armstrong | 36c9bcd | 2023-04-05 19:05:56 -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 |
| 15 | # limitations under the License. |
| 16 | # |
Joey Armstrong | 2c03936 | 2024-02-04 18:51:52 -0500 | [diff] [blame] | 17 | # SPDX-FileCopyrightText: 2024 Open Networking Foundation (ONF) and the ONF Contributors |
Joey Armstrong | 36c9bcd | 2023-04-05 19:05:56 -0400 | [diff] [blame] | 18 | # SPDX-License-Identifier: Apache-2.0 |
| 19 | # ----------------------------------------------------------------------- |
| 20 | |
| 21 | $(if $(DEBUG),$(warning ENTER)) |
| 22 | |
Joey Armstrong | 36c9bcd | 2023-04-05 19:05:56 -0400 | [diff] [blame] | 23 | ## ----------------------------------------------------------------------- |
Joey Armstrong | 96bcf1b | 2023-06-27 14:49:40 -0400 | [diff] [blame] | 24 | ## Define vars based on relative import (normalize symlinks) |
| 25 | ## Usage: include makefiles/onf/include.mk |
Joey Armstrong | 36c9bcd | 2023-04-05 19:05:56 -0400 | [diff] [blame] | 26 | ## ----------------------------------------------------------------------- |
Joey Armstrong | 96bcf1b | 2023-06-27 14:49:40 -0400 | [diff] [blame] | 27 | onf-mk-abs ?= $(abspath $(lastword $(MAKEFILE_LIST))) |
| 28 | onf-mk-top := $(subst /include.mk,$(null),$(onf-mk-abs)) |
Joey Armstrong | 36c9bcd | 2023-04-05 19:05:56 -0400 | [diff] [blame] | 29 | |
Joey Armstrong | 30bfd39 | 2024-04-10 16:10:06 -0400 | [diff] [blame^] | 30 | include $(legacy-mk)/consts.mk |
| 31 | include $(legacy-mk)/help/include.mk # render target help |
| 32 | include $(legacy-mk)/utils/include.mk # dependency-less helper macros |
| 33 | include $(legacy-mk)/etc/include.mk # banner macros |
Joey Armstrong | 96bcf1b | 2023-06-27 14:49:40 -0400 | [diff] [blame] | 34 | |
Joey Armstrong | 30bfd39 | 2024-04-10 16:10:06 -0400 | [diff] [blame^] | 35 | include $(legacy-mk)/virtualenv.mk# # lint-{jjb,python} depends on venv |
Joey Armstrong | 96bcf1b | 2023-06-27 14:49:40 -0400 | [diff] [blame] | 36 | |
Joey Armstrong | 30bfd39 | 2024-04-10 16:10:06 -0400 | [diff] [blame^] | 37 | include $(legacy-mk)/lint/include.mk |
Joey Armstrong | 96bcf1b | 2023-06-27 14:49:40 -0400 | [diff] [blame] | 38 | |
Joey Armstrong | 30bfd39 | 2024-04-10 16:10:06 -0400 | [diff] [blame^] | 39 | # include $(legacy-mk)/git-submodules.mk |
| 40 | # include $(legacy-mk)/gerrit/include.mk |
| 41 | include $(legacy-mk)/golang/include.mk |
Joey Armstrong | 96bcf1b | 2023-06-27 14:49:40 -0400 | [diff] [blame] | 42 | |
Joey Armstrong | 30bfd39 | 2024-04-10 16:10:06 -0400 | [diff] [blame^] | 43 | include $(legacy-mk)/todo.mk |
| 44 | include $(legacy-mk)/help/variables.mk |
Joey Armstrong | 96bcf1b | 2023-06-27 14:49:40 -0400 | [diff] [blame] | 45 | |
| 46 | ##---------------------## |
| 47 | ##---] ON_DEMAND [---## |
| 48 | ##---------------------## |
Joey Armstrong | 30bfd39 | 2024-04-10 16:10:06 -0400 | [diff] [blame^] | 49 | $(if $(USE_DOCKER_MK),$(eval $(legacy-mk)/docker/include.mk)) |
Joey Armstrong | 96bcf1b | 2023-06-27 14:49:40 -0400 | [diff] [blame] | 50 | |
| 51 | ##-------------------## |
| 52 | ##---] TARGETS [---## |
| 53 | ##-------------------## |
Joey Armstrong | 30bfd39 | 2024-04-10 16:10:06 -0400 | [diff] [blame^] | 54 | include $(legacy-mk)/targets/clean.mk |
| 55 | # include $(legacy-mk)/targets/check.mk |
| 56 | include $(legacy-mk)/targets/sterile.mk |
| 57 | # include $(legacy-mk)/targets/test.mk |
Joey Armstrong | 36c9bcd | 2023-04-05 19:05:56 -0400 | [diff] [blame] | 58 | |
| 59 | $(if $(DEBUG),$(warning LEAVE)) |
| 60 | |
| 61 | # [EOF] |