blob: 694eb3725ec9dbd3604e194e8c9c3cf2cc9f755d [file] [log] [blame]
Joey Armstrongfedf45e2023-09-20 11:40:01 -04001Two distinct makefile directories are in use:
2 - Common library makefiles (onf-make/)
3 - Project specific makefile logic (local/)
4
5Makefile logic is loaded/accessed through make macros:
6 ONF_MAKEDIR= Common makefile targets and logic
7 MAKEDIR= Repository/project specific targets
8
9Common library targets are defined/augmented as double colon rules:
10 build clean help sterile test :: # dup targets OK
11
12 % make sterile test
13
14All other targets are defined and accessed as single colon rules:
15 repo-rule : # fail on duplicate targets
16
17
18All makefiles/ logic can be access from the top level Makefile
19==============================================================
20
21TOP ?= $(strip $(dir $(abspath $(lastword $(MAKEFILE_LIST))) ) )
22include $(TOP)/config.mk
23include $(TOP)/makefiles/include.mk
24
25Which in turn will load onf-make/ and local/
26============================================
27include $(ONF_MAKE)/makefiles/include.mk
28include $(MAKEDIR)/makefiles/include.mk
29
30% make sterile build
31
32# [EOF]