progs: Fix quoting issue with empty set of PROGRAM_DIRS.
authorTom Fogal <tfogal@alumni.unh.edu>
Thu, 19 Nov 2009 03:19:29 +0000 (20:19 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 19 Nov 2009 16:26:39 +0000 (09:26 -0700)
Quotes are important to make sure the argument to test -n really
is the empty string, but that requires stringifying PROGRAM_DIRS.

Signed-off-by: Brian Paul <brianp@vmware.com>
progs/Makefile

index 3700707dfb17a8bcfeb66dc3e28c3f74ecde6a08..d5852fa416cd4bde57abe88475148513ed8bb7ed 100644 (file)
@@ -4,7 +4,7 @@ TOP = ..
 
 include $(TOP)/configs/current
 
-SUBDIRS = $(PROGRAM_DIRS)
+SUBDIRS = "$(strip "$(PROGRAM_DIRS)")"
 
 
 default: message subdirs