6 while
[ ! -r
"$$top/Rules.top" ] && [ "$$top" != "" ]; do \
14 .PHONY
: dir tree
all clean clean_all clean_tree dist_clean
16 # Default target when nothing is given on the command line. Reasonable
18 # "dir" - updates only targets from current directory and its dependencies
19 # "tree" - updates targets (and their dependencies) in whole subtree
20 # starting at current directory
21 # "all" - updates all targets in the project
27 clean : clean_
$(RUNDIR
)
28 clean_tree
: clean_tree_
$(RUNDIR
)
30 # $(d) keeps the path of "current" directory during tree traversal and
31 # $(dir_stack) is used for backtracking during traversal
35 include $(MK
)/header.mk
36 include $(MK
)/footer.mk
38 # Automatic inclusion of the skel.mk at the top level - that way
39 # Rules.top has exactly the same structure as other Rules.mk
43 $(eval
$(value HEADER
))
44 include $(TOP
)/Rules.top
45 $(eval
$(value FOOTER
))
47 # Optional final makefile where you can specify additional targets
48 -include $(TOP
)/final.mk
50 # This is just a convenience - to let you know when make has stopped
51 # interpreting make files and started their execution.
52 $(info Rules generated
$(if
$(BUILD_MODE
),for
"$(BUILD_MODE)" mode
,)...
)