Joey Armstrong | 6b58fd4 | 2023-04-12 17:45:53 -0400 | [diff] [blame^] | 1 | # -*- 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 | |
| 20 | TOP ?= . |
| 21 | MAKEDIR ?= $(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 |
| 29 | include $(MAKEDIR)/include.mk |
| 30 | |
| 31 | ## ----------------------------------------------------------------------- |
| 32 | ## Intent: |
| 33 | ## ----------------------------------------------------------------------- |
| 34 | all: |
| 35 | |
| 36 | ## ----------------------------------------------------------------------- |
| 37 | ## Intent: Common targets used to build and test the world |
| 38 | ## ----------------------------------------------------------------------- |
| 39 | .PHONY: build |
| 40 | build :: |
| 41 | |
| 42 | .PHONY: build |
| 43 | test :: |
| 44 | |
| 45 | ## ----------------------------------------------------------------------- |
| 46 | ## Intent: Targets for removing generated content |
| 47 | ## ----------------------------------------------------------------------- |
| 48 | .PHONY: clean |
| 49 | clean :: |
| 50 | $(RM) 'invalid/foo/bar' |
| 51 | |
| 52 | .PHONY: sterile |
| 53 | sterile :: clean |
| 54 | $(RM) -r 'invalid' |
| 55 | |
| 56 | # [EOF] |