]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/Makefile.in
made makefile more robust
[wxWidgets.git] / contrib / src / Makefile.in
index fbee2c5b167dda51f86b46d0ec002a57aa347f78..ef331ca9927d79af5a3adadbb7be2531acfdeef9 100644 (file)
@@ -2,13 +2,11 @@
 # Makefile : Builds wxWindows contrib src for Unix.
 #
 
+CONTRIB_SUBDIRS=ogl mmedia stc
+
 all:
-       cd ogl; make
-       cd mmedia; make
-       cd stc; make
+       @for d in $(CONTRIB_SUBDIRS); do (cd $$d && $(MAKE)); done
 
 clean:
-       cd ogl; make clean
-       cd mmedia; make clean
-       cd stc; make clean
+       @for d in $(CONTRIB_SUBDIRS); do (cd $$d && $(MAKE) clean); done