aboutsummaryrefslogtreecommitdiff
path: root/mesalib/progs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mesalib/progs/Makefile')
-rw-r--r--mesalib/progs/Makefile24
1 files changed, 10 insertions, 14 deletions
diff --git a/mesalib/progs/Makefile b/mesalib/progs/Makefile
index 3700707df..5bc444e95 100644
--- a/mesalib/progs/Makefile
+++ b/mesalib/progs/Makefile
@@ -15,22 +15,18 @@ message:
subdirs:
- @if test -n "$(SUBDIRS)" ; then \
- for dir in $(SUBDIRS) ; do \
- if [ -d $$dir ] ; then \
- (cd $$dir && $(MAKE)) || exit 1 ; \
- fi \
- done \
- fi
+ @list='$(SUBDIRS)'; for dir in $$list ; do \
+ if [ -d $$dir ] ; then \
+ (cd $$dir && $(MAKE)) || exit 1 ; \
+ fi \
+ done
# Dummy install target
install:
clean:
- -@if test -n "$(SUBDIRS)" ; then \
- for dir in $(SUBDIRS) tests ; do \
- if [ -d $$dir ] ; then \
- (cd $$dir && $(MAKE) clean) ; \
- fi \
- done \
- fi
+ @list='$(SUBDIRS)'; for dir in $$list tests ; do \
+ if [ -d $$dir ] ; then \
+ (cd $$dir && $(MAKE) clean) ; \
+ fi \
+ done