aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile21
1 files changed, 9 insertions, 12 deletions
diff --git a/examples/Makefile b/examples/Makefile
index 6d99b4f..e6030ac 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -1,22 +1,19 @@
.POSIX:
-all: \
+DIRS = \
+ form \
headers \
hello \
html \
put
-clean:
- +cd hello && $(MAKE) clean
- +cd html && $(MAKE) clean
+all: FORCE
+ +for d in $(DIRS); do (cd $$d && $(MAKE)); done
-FORCE:
-
-headers: FORCE
- +cd headers && $(MAKE)
+clean: FORCE
+ +for d in $(DIRS); do (cd $$d && $(MAKE) clean); done
-hello: FORCE
- +cd hello && $(MAKE)
+$(DIRS): FORCE
+ +cd $@ && $(MAKE)
-html: FORCE
- +cd html && $(MAKE)
+FORCE: