summaryrefslogtreecommitdiff
path: root/progs/Makefile
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-03-26 15:19:11 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-03-26 15:19:11 +0000
commitde0ee3187c8fffb52327f9a5680a3eafea872276 (patch)
tree69ca2969c64ddd79910f0783639d4c7bd65df792 /progs/Makefile
parenta70ad91209b08ebe7122ace6d6656b11d9b04542 (diff)
New Makefile system
Diffstat (limited to 'progs/Makefile')
-rw-r--r--progs/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/progs/Makefile b/progs/Makefile
new file mode 100644
index 0000000000..f925de5860
--- /dev/null
+++ b/progs/Makefile
@@ -0,0 +1,27 @@
+# progs/Makefile
+
+TOP = ..
+
+include $(TOP)/configs/current
+
+SUBDIRS = $(PROGRAM_DIRS)
+
+
+default: $(TOP)/configs/current
+ @for dir in $(SUBDIRS) ; do \
+ if [ -d $$dir ] ; then \
+ pushd $$dir ; \
+ make ; \
+ popd ; \
+ fi \
+ done
+
+
+clean:
+ @for dir in $(SUBDIRS) ; do \
+ if [ -d $$dir ] ; then \
+ pushd $$dir ; \
+ make clean; \
+ popd ; \
+ fi \
+ done