blob: 247df88596d1bc168ed855f93829fcff26ce3baf [file] [log] [blame]
Joey Armstrong36c9bcd2023-04-05 19:05:56 -04001# -*- makefile -*-
2# -----------------------------------------------------------------------
Joey Armstrong2c039362024-02-04 18:51:52 -05003# Copyright 2017-2024 Open Networking Foundation (ONF) and the ONF Contributors
Joey Armstrong36c9bcd2023-04-05 19:05:56 -04004#
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 Armstrong2c039362024-02-04 18:51:52 -050017# SPDX-FileCopyrightText: 2024 Open Networking Foundation (ONF) and the ONF Contributors
Joey Armstrong36c9bcd2023-04-05 19:05:56 -040018# SPDX-License-Identifier: Apache-2.0
19# -----------------------------------------------------------------------
20
21$(if $(DEBUG),$(warning ENTER))
22
Joey Armstrong36c9bcd2023-04-05 19:05:56 -040023## -----------------------------------------------------------------------
Joey Armstrong96bcf1b2023-06-27 14:49:40 -040024## Define vars based on relative import (normalize symlinks)
25## Usage: include makefiles/onf/include.mk
Joey Armstrong36c9bcd2023-04-05 19:05:56 -040026## -----------------------------------------------------------------------
Joey Armstrong96bcf1b2023-06-27 14:49:40 -040027onf-mk-abs ?= $(abspath $(lastword $(MAKEFILE_LIST)))
28onf-mk-top := $(subst /include.mk,$(null),$(onf-mk-abs))
Joey Armstrong36c9bcd2023-04-05 19:05:56 -040029
Joey Armstrong30bfd392024-04-10 16:10:06 -040030include $(legacy-mk)/consts.mk
31include $(legacy-mk)/help/include.mk # render target help
32include $(legacy-mk)/utils/include.mk # dependency-less helper macros
33include $(legacy-mk)/etc/include.mk # banner macros
Joey Armstrong96bcf1b2023-06-27 14:49:40 -040034
Joey Armstrong30bfd392024-04-10 16:10:06 -040035include $(legacy-mk)/virtualenv.mk# # lint-{jjb,python} depends on venv
Joey Armstrong96bcf1b2023-06-27 14:49:40 -040036
Joey Armstrong30bfd392024-04-10 16:10:06 -040037include $(legacy-mk)/lint/include.mk
Joey Armstrong96bcf1b2023-06-27 14:49:40 -040038
Joey Armstrong30bfd392024-04-10 16:10:06 -040039# include $(legacy-mk)/git-submodules.mk
40# include $(legacy-mk)/gerrit/include.mk
41include $(legacy-mk)/golang/include.mk
Joey Armstrong96bcf1b2023-06-27 14:49:40 -040042
Joey Armstrong30bfd392024-04-10 16:10:06 -040043include $(legacy-mk)/todo.mk
44include $(legacy-mk)/help/variables.mk
Joey Armstrong96bcf1b2023-06-27 14:49:40 -040045
46##---------------------##
47##---] ON_DEMAND [---##
48##---------------------##
Joey Armstrong30bfd392024-04-10 16:10:06 -040049$(if $(USE_DOCKER_MK),$(eval $(legacy-mk)/docker/include.mk))
Joey Armstrong96bcf1b2023-06-27 14:49:40 -040050
51##-------------------##
52##---] TARGETS [---##
53##-------------------##
Joey Armstrong30bfd392024-04-10 16:10:06 -040054include $(legacy-mk)/targets/clean.mk
55# include $(legacy-mk)/targets/check.mk
56include $(legacy-mk)/targets/sterile.mk
57# include $(legacy-mk)/targets/test.mk
Joey Armstrong36c9bcd2023-04-05 19:05:56 -040058
59$(if $(DEBUG),$(warning LEAVE))
60
61# [EOF]