diff options
Diffstat (limited to 'progs')
| -rw-r--r-- | progs/Makefile | 26 | 
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 | 
