Backed out changeset 3e1290bba902 - Bug 525221 which was committed accidentally.
authorBenjamin Smedberg <benjamin@smedbergs.us>
Tue, 10 Nov 2009 09:52:47 -0500
changeset 34732 e8f791a62494b867be1757d44fe4e045afd406d6
parent 34730 3e1290bba9029798016d7106237fea5850f8840c
child 34733 82a129e8f7231fc0c0c06986b93ea5b24d5453e1
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
bugs525221
milestone1.9.3a1pre
backs out3e1290bba9029798016d7106237fea5850f8840c
Backed out changeset 3e1290bba902 - Bug 525221 which was committed accidentally.
nsprpub/config/rules.mk
--- a/nsprpub/config/rules.mk
+++ b/nsprpub/config/rules.mk
@@ -167,23 +167,28 @@ endif
 ALL_TRASH		= $(TARGETS) $(OBJS) $(RES) $(filter-out . .., $(OBJDIR)) LOGS TAGS $(GARBAGE) \
 			  $(NOSUCHFILE) \
 			  so_locations
 
 ifndef RELEASE_LIBS_DEST
 RELEASE_LIBS_DEST	= $(RELEASE_LIB_DIR)
 endif
 
-define MAKE_DIR
-	$(MAKE) -C $(dir) $@
-
-endef
-
 ifdef DIRS
-LOOP_OVER_DIRS = $(foreach dir,$(wildcard $(DIRS)),$(MAKE_DIR))
+LOOP_OVER_DIRS		=					\
+	@for d in $(DIRS); do					\
+		if test -d $$d; then				\
+			set -e;					\
+			echo "cd $$d; $(MAKE) $@";		\
+			$(MAKE) -C $$d $@;			\
+			set +e;					\
+		else						\
+			echo "Skipping non-directory $$d...";	\
+		fi;						\
+	done
 endif
 
 ################################################################################
 
 all:: export
 
 export::
 	+$(LOOP_OVER_DIRS)