-# Top-level directory
-T := .
+.PHONY: example
+example:
+ @$(MAKE) -C example
-# Default goal for building this directory
-.DEFAULT_GOAL := all
-
-# Include the top-level makefile
-include $T/Toplevel.mak
+.PHONY: clean-example
+clean-example:
+ @$(MAKE) -C example clean
$(call install_file)
# Include sub-directories makefiles
-$(call include_subdirs,
- subproj
- lib1
- lib2
- prog
+$(call include_subdirs, \
+ subproj \
+ lib1 \
+ lib2 \
+ prog \
)
--- /dev/null
+../Toplevel.mak
\ No newline at end of file
--- /dev/null
+
+# Top-level directory
+T := .
+
+# Default goal for building this directory
+.DEFAULT_GOAL := all
+
+# Include the top-level makefile
+include $T/Toplevel.mak
+
--- /dev/null
+../Makeit.mak
\ No newline at end of file
--- /dev/null
+../Toplevel.mak
\ No newline at end of file
+++ /dev/null
-ifndef Toplevel.mak.included
-Toplevel.mak.included := 1
-
-# Load top-level directory local configuration
-sinclude $T/Config.mak
-
-# Include the build system library
-include $T/Makeit.mak
-
-# Include the Build.mak for this directory
-include $T/Build.mak
-
-endif