# Build everything necessary to compile the wiki.
-SUBDIRS = posts/drexel-thesis posts/Hooke posts/problempack posts/rel-vcs \
- posts/sawsim posts/Thesis posts/yacc2dot posts/Xmodmap \
+SUBDIRS = posts/Abax posts/drexel-thesis posts/Hooke posts/problempack \
+ posts/rel-vcs posts/sawsim posts/Thesis posts/yacc2dot posts/Xmodmap \
posts/XSLT/chapter posts/XSLT/code
TARGETS = all clean
-all :
+SCONS_SUBDIRS = posts/Pulse_oxymetry
-$(TARGETS) :
+
+all : make-all scons-all
+clean : make-clean scons-clean
+
+$(TARGETS:%=make-%) :
@for i in $(SUBDIRS); do \
- echo "make $@ in $$i..."; \
- (cd $$i; $(MAKE) $(MFLAGS) $@); done
+ echo "make ${@:make-%=%} in $$i..."; \
+ (cd $$i; $(MAKE) $(MFLAGS) ${@:make-%=%}); done
+
+scons-all :
+ @for i in $(SCONS_SUBDIRS); do \
+ echo "scons in $$i..."; \
+ (cd $$i; scons); done
+
+scons-clean :
+ @for i in $(SCONS_SUBDIRS); do \
+ echo "scons -c in $$i..."; \
+ (cd $$i; scons -c); done