Add pulse oxymetry post and updated master Makefile for SCons builds.
[blog.git] / Makefile
index 6141a5154a91096eb7fd2275060bd1b6393e4668..3acb4406b0be265ae73d27063bece9c4d410e201 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,9 +5,23 @@ SUBDIRS = posts/Abax posts/drexel-thesis posts/Hooke posts/problempack \
        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