blob: 489303c5c223932ed5d2a1e5cae900ff5a0daaf8 [file] [log] [blame]
Joey Armstrong65405412022-11-22 10:43:06 -05001# -*- makefile -*-
Joey Armstrong3f575f72023-01-15 23:49:19 -05002# -----------------------------------------------------------------------
Joey Armstrong518f3572024-02-11 07:56:25 -05003# Copyright 2022-2024 Open Networking Foundation (ONF) and the ONF Contributors
Joey Armstrong3f575f72023-01-15 23:49:19 -05004#
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 Armstrong65405412022-11-22 10:43:06 -050017
Joey Armstrong068d6452023-02-01 11:09:18 -050018.PHONY: help clean help test
19.DEFAULT_GOAL := help
Zack Williamsc2140b92018-04-05 09:19:22 -070020
Joey Armstrong3f575f72023-01-15 23:49:19 -050021##-------------------##
22##---] GLOBALS [---##
23##-------------------##
Joey Armstrong3f575f72023-01-15 23:49:19 -050024
Joey Armstrong3f575f72023-01-15 23:49:19 -050025##--------------------##
26##---] INCLUDES [---##
27##--------------------##
Joey Armstrong980e37f2023-02-28 18:57:41 -050028include config.mk
Joey Armstrongdd334492023-07-09 17:59:02 -040029include makefiles/include.mk
30ONF_MAKEDIR ?= $(error ONF_MAKEDIR= is required)
Joey Armstrong3f575f72023-01-15 23:49:19 -050031
Joey Armstrong29874122023-09-21 12:34:34 -040032# [TODO]
Joey Armstrong3f575f72023-01-15 23:49:19 -050033# JJB_VERSION ?= 4.1.0
Zack Williamsc2140b92018-04-05 09:19:22 -070034
Joey Armstrong01bbf8d2023-03-05 06:20:14 -050035# -----------------------------------------------------------------------
36# horrible dep: (ie -- .PHONY: $(JOBCONFIG_DIR))
37# o Directory inode always changing due to (time-last-accessed++).
38# o Dependent Targets always re-made due to setale dependency.
39# o Use file inside directory as dep rather than a directory.
40# -----------------------------------------------------------------------
Zack Williamsc2140b92018-04-05 09:19:22 -070041$(JOBCONFIG_DIR):
42 mkdir $@
43
Joey Armstrongdd334492023-07-09 17:59:02 -040044# -----------------------------------------------------------------------
45# Intent: Generate pipeline jobs
46# -----------------------------------------------------------------------
47build : jjb-gen
48
Joey Armstrong01bbf8d2023-03-05 06:20:14 -050049##-------------------##
50##---] TARGETS [---##
51##-------------------##
Joey Armstrongdd334492023-07-09 17:59:02 -040052## Display make help summary late
53include $(ONF_MAKEDIR)/help/trailer.mk
Joey Armstrong3f575f72023-01-15 23:49:19 -050054
Joey Armstrongdd334492023-07-09 17:59:02 -040055# make help not widely in use yet so be explicit
56help ::
57 @echo
58 @echo 'Usage: $(MAKE) help ...'
59 @echo ' % make clean sterile'
60 @echo ' % make lint lint-jjb'
Joey Armstrongcb896602023-07-21 16:38:42 -040061 @echo ' % make build # jjb-gen'
Joey Armstrongdd334492023-07-09 17:59:02 -040062 @echo ' % make test'
63 @echo ' % make help # show all available targes'
Joey Armstrong65405412022-11-22 10:43:06 -050064
65# [EOF]