X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0b26605d52c86b012adef03e66dfdcb295d5207f..c13b1125efe8f57220010e224c76de163b4fcf95:/samples/Makefile.in

diff --git a/samples/Makefile.in b/samples/Makefile.in
index 9697bfc7da..f059382a04 100644
--- a/samples/Makefile.in
+++ b/samples/Makefile.in
@@ -2,70 +2,10 @@
 # Makefile : Builds wxWindows samples for Unix.
 #
 
+SAMPLES_SUBDIRS=@SAMPLES_SUBDIRS@
+
 all:
-	cd bombs && make
-	cd checklst && make
-	cd config && make
-	cd controls && make
-	cd dialogs && make
-	cd docview && make
-	cd docvwmdi && make
-	cd dynamic && make
-	cd fractal && make
-	cd grid && make
-	cd help && make
-	cd image && make
-	cd internat && make
-	cd layout && make
-	cd listctrl && make
-	cd memcheck && make
-	cd minifram && make
-	cd minimal && make
-	cd notebook && make
-	cd printing && make
-	cd proplist && make
-	cd resource && make
-	cd sashtest && make
-	cd splitter && make
-	cd text && make
-	cd toolbar && make
-	cd typetest && make
-	cd validate && make
-	cd treectrl && make
-	cd wxpoem && make
-	cd dnd && make
-	cd thread && make
+	@for d in $(SAMPLES_SUBDIRS); do (cd $$d && $(MAKE)); done
 
 clean:
-	cd bombs && make clean
-	cd checklst && make clean
-	cd config && make clean
-	cd controls && make clean
-	cd dialogs && make clean
-	cd docview && make clean
-	cd docvwmdi && make clean
-	cd dynamic && make clean
-	cd fractal && make clean
-	cd grid && make clean
-	cd help && make clean
-	cd image && make clean
-	cd internat && make clean
-	cd layout && make clean
-	cd listctrl && make clean
-	cd memcheck && make clean
-	cd minifram && make clean
-	cd minimal && make clean
-	cd notebook && make clean
-	cd printing && make clean
-	cd proplist && make clean
-	cd resource && make clean
-	cd sashtest && make clean
-	cd splitter && make clean
-	cd toolbar && make clean
-	cd typetest && make clean
-	cd validate && make clean
-	cd treectrl && make clean
-	cd wxpoem && make clean
-	cd dnd && make clean
-	cd thread && make clean
-
+	@for d in $(SAMPLES_SUBDIRS); do (cd $$d && $(MAKE) clean); done