summaryrefslogtreecommitdiff
path: root/progs/Makefile
diff options
context:
space:
mode:
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