aboutsummaryrefslogtreecommitdiff
path: root/dist/examples/cxx/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'dist/examples/cxx/makefile')
-rw-r--r--dist/examples/cxx/makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/dist/examples/cxx/makefile b/dist/examples/cxx/makefile
new file mode 100644
index 0000000..4882e9a
--- /dev/null
+++ b/dist/examples/cxx/makefile
@@ -0,0 +1,11 @@
+dirs := parser tree
+
+.PHONY: all $(dirs)
+
+all: $(dirs)
+
+$(dirs):
+ @$(MAKE) -C $@ $(MAKECMDGOALS)
+
+makefile: ;
+% :: $(dirs) ;