blob: adf62088cc9caeeb9eedc503e9c4794bb4ba9268 [file] [log] [blame]
Joey Armstrong6b58fd42023-04-12 17:45:53 -04001# -*- makefile -*-
2# -----------------------------------------------------------------------
3# Copyright 2022-2023 Open Networking Foundation (ONF) and the ONF Contributors
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# -----------------------------------------------------------------------
17
18.DEFAULT_GOAL := help
19
20TOP ?= .
21MAKEDIR ?= $(TOP)/makefiles
22
23$(if $(VERBOSE),$(eval export VERBOSE=$(VERBOSE))) # visible to include(s)
24
25##--------------------##
26##---] INCLUDES [---##
27##--------------------##
28-include config.mk# # per-repository config
29include $(MAKEDIR)/include.mk
30
31## -----------------------------------------------------------------------
32## Intent:
33## -----------------------------------------------------------------------
34all:
35
36## -----------------------------------------------------------------------
37## Intent: Common targets used to build and test the world
38## -----------------------------------------------------------------------
39.PHONY: build
40build ::
41
42.PHONY: build
43test ::
44
45## -----------------------------------------------------------------------
46## Intent: Targets for removing generated content
47## -----------------------------------------------------------------------
48.PHONY: clean
49clean ::
50 $(RM) 'invalid/foo/bar'
51
52.PHONY: sterile
53sterile :: clean
54 $(RM) -r 'invalid'
55
56# [EOF]