summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-10-14 09:22:30 -0600
committerBrian Paul <brianp@vmware.com>2009-10-14 09:22:30 -0600
commitce3801ab87ef6eb29e5b81c2acfdd102f7b9c0ae (patch)
tree6eef465b806f82b085ce30a31a514c0ffabf72d3 /progs
parent98eb7a14a44f8e5c3c2d2f1418d7d4e4ed0fe5e8 (diff)
parent115edf24a9128b79dfa5f30482c990e2cb898357 (diff)
Merge branch 'mesa_7_6_branch'
Diffstat (limited to 'progs')
-rw-r--r--progs/Makefile26
1 files changed, 15 insertions, 11 deletions
diff --git a/progs/Makefile b/progs/Makefile
index c99f4eebcc..064e5a232e 100644
--- a/progs/Makefile
+++ b/progs/Makefile
@@ -4,7 +4,7 @@ TOP = ..
include $(TOP)/configs/current
-SUBDIRS = $(PROGRAM_DIRS)
+SUBDIRS ="$(PROGRAM_DIRS)"
default: message subdirs
@@ -15,18 +15,22 @@ message:
subdirs:
- @for dir in $(SUBDIRS) ; do \
- if [ -d $$dir ] ; then \
- (cd $$dir && $(MAKE)) || exit 1 ; \
- fi \
- done
+ @if test -n "$(SUBDIRS)" ; then \
+ for dir in $(SUBDIRS) ; do \
+ if [ -d $$dir ] ; then \
+ (cd $$dir && $(MAKE)) || exit 1 ; \
+ fi \
+ done \
+ fi
# Dummy install target
install:
clean:
- -@for dir in $(SUBDIRS) tests ; do \
- if [ -d $$dir ] ; then \
- (cd $$dir && $(MAKE) clean) ; \
- fi \
- done
+ -@if test -n "$(SUBDIRS)" ; then \
+ for dir in $(SUBDIRS) tests ; do \
+ if [ -d $$dir ] ; then \
+ (cd $$dir && $(MAKE) clean) ; \
+ fi \
+ done \
+ fi