From 4b00da76a519c6be5a683aa63f50addcc43ba7eb Mon Sep 17 00:00:00 2001 From: Benjamin Smedberg Date: Tue, 2 Dec 2008 17:17:41 -0500 Subject: [PATCH] Backed out changeset f71446b6fc7e: bug 466486- directories are getting skipped, causing things like xpcshell not to be built --- config/rules.mk | 24 ++++++++++-------------- js/src/config/rules.mk | 24 ++++++++++-------------- 2 files changed, 20 insertions(+), 28 deletions(-) diff --git a/config/rules.mk b/config/rules.mk index 49c9d22b26e..6ccaafbb8ab 100644 --- a/config/rules.mk +++ b/config/rules.mk @@ -367,30 +367,22 @@ UPDATE_TITLE_libs = sed -e "s!Y!libs in $(shell $(BUILD_TOOLS)/print-depth-path. UPDATE_TITLE_tools = sed -e "s!Y!tools in $(shell $(BUILD_TOOLS)/print-depth-path.sh)/$*!" $(MOZILLA_DIR)/config/xterm.str; endif -ifneq (,$(strip $(DIRS))) LOOP_OVER_DIRS = \ @$(EXIT_ON_ERROR) \ - $(foreach dir,$(DIRS),$(UPDATE_TITLE) $(MAKE) -C $(dir) $@; ) -endif + $(foreach dir,$(DIRS),$(UPDATE_TITLE) $(MAKE) -C $(dir) $@; ) true # we only use this for the makefiles target and other stuff that doesn't matter -ifneq (,$(strip $(PARALLEL_DIRS))) LOOP_OVER_PARALLEL_DIRS = \ @$(EXIT_ON_ERROR) \ - $(foreach dir,$(PARALLEL_DIRS),$(UPDATE_TITLE) $(MAKE) -C $(dir) $@; ) -endif + $(foreach dir,$(PARALLEL_DIRS),$(UPDATE_TITLE) $(MAKE) -C $(dir) $@; ) true -ifneq (,$(strip $(STATIC_DIRS))) LOOP_OVER_STATIC_DIRS = \ @$(EXIT_ON_ERROR) \ - $(foreach dir,$(STATIC_DIRS),$(UPDATE_TITLE) $(MAKE) -C $(dir) $@; ) -endif + $(foreach dir,$(STATIC_DIRS),$(UPDATE_TITLE) $(MAKE) -C $(dir) $@; ) true -ifneq (,$(strip $(TOOL_DIRS))) LOOP_OVER_TOOL_DIRS = \ @$(EXIT_ON_ERROR) \ - $(foreach dir,$(TOOL_DIRS),$(UPDATE_TITLE) $(MAKE) -C $(dir) $@; ) -endif + $(foreach dir,$(TOOL_DIRS),$(UPDATE_TITLE) $(MAKE) -C $(dir) $@; ) true ifdef PARALLEL_DIRS # create a bunch of fake targets for order-only processing @@ -630,7 +622,8 @@ default all alldep:: else default all:: - +$(LOOP_OVER_STATIC_DIRS) + @$(EXIT_ON_ERROR) \ + $(foreach dir,$(STATIC_DIRS),$(MAKE) -C $(dir); ) true $(MAKE) export $(MAKE) libs $(MAKE) tools @@ -732,7 +725,10 @@ endif tools:: $(SUBMAKEFILES) $(MAKE_DIRS) +$(LOOP_OVER_DIRS) - +$(LOOP_OVER_TOOL_DIRS) +ifdef TOOL_DIRS + @$(EXIT_ON_ERROR) \ + $(foreach dir,$(TOOL_DIRS),$(UPDATE_TITLE) $(MAKE) -C $(dir) libs; ) true +endif # # Rule to create list of libraries for final link diff --git a/js/src/config/rules.mk b/js/src/config/rules.mk index 49c9d22b26e..6ccaafbb8ab 100644 --- a/js/src/config/rules.mk +++ b/js/src/config/rules.mk @@ -367,30 +367,22 @@ UPDATE_TITLE_libs = sed -e "s!Y!libs in $(shell $(BUILD_TOOLS)/print-depth-path. UPDATE_TITLE_tools = sed -e "s!Y!tools in $(shell $(BUILD_TOOLS)/print-depth-path.sh)/$*!" $(MOZILLA_DIR)/config/xterm.str; endif -ifneq (,$(strip $(DIRS))) LOOP_OVER_DIRS = \ @$(EXIT_ON_ERROR) \ - $(foreach dir,$(DIRS),$(UPDATE_TITLE) $(MAKE) -C $(dir) $@; ) -endif + $(foreach dir,$(DIRS),$(UPDATE_TITLE) $(MAKE) -C $(dir) $@; ) true # we only use this for the makefiles target and other stuff that doesn't matter -ifneq (,$(strip $(PARALLEL_DIRS))) LOOP_OVER_PARALLEL_DIRS = \ @$(EXIT_ON_ERROR) \ - $(foreach dir,$(PARALLEL_DIRS),$(UPDATE_TITLE) $(MAKE) -C $(dir) $@; ) -endif + $(foreach dir,$(PARALLEL_DIRS),$(UPDATE_TITLE) $(MAKE) -C $(dir) $@; ) true -ifneq (,$(strip $(STATIC_DIRS))) LOOP_OVER_STATIC_DIRS = \ @$(EXIT_ON_ERROR) \ - $(foreach dir,$(STATIC_DIRS),$(UPDATE_TITLE) $(MAKE) -C $(dir) $@; ) -endif + $(foreach dir,$(STATIC_DIRS),$(UPDATE_TITLE) $(MAKE) -C $(dir) $@; ) true -ifneq (,$(strip $(TOOL_DIRS))) LOOP_OVER_TOOL_DIRS = \ @$(EXIT_ON_ERROR) \ - $(foreach dir,$(TOOL_DIRS),$(UPDATE_TITLE) $(MAKE) -C $(dir) $@; ) -endif + $(foreach dir,$(TOOL_DIRS),$(UPDATE_TITLE) $(MAKE) -C $(dir) $@; ) true ifdef PARALLEL_DIRS # create a bunch of fake targets for order-only processing @@ -630,7 +622,8 @@ default all alldep:: else default all:: - +$(LOOP_OVER_STATIC_DIRS) + @$(EXIT_ON_ERROR) \ + $(foreach dir,$(STATIC_DIRS),$(MAKE) -C $(dir); ) true $(MAKE) export $(MAKE) libs $(MAKE) tools @@ -732,7 +725,10 @@ endif tools:: $(SUBMAKEFILES) $(MAKE_DIRS) +$(LOOP_OVER_DIRS) - +$(LOOP_OVER_TOOL_DIRS) +ifdef TOOL_DIRS + @$(EXIT_ON_ERROR) \ + $(foreach dir,$(TOOL_DIRS),$(UPDATE_TITLE) $(MAKE) -C $(dir) libs; ) true +endif # # Rule to create list of libraries for final link