Bug 1037981 Make 'derecursed' builds support --enable-xterm-updates r=glandium

This commit is contained in:
Neil Rashbrook 2014-07-16 08:36:30 +01:00
parent ba8e9e0f60
commit bf47b7faa5
3 changed files with 12 additions and 3 deletions

View File

@ -13,8 +13,13 @@
# Support usage outside of config/rules.mk
ifndef INCLUDED_DEBUGMAKE_MK #{
define CR
endef
define shell_quote
'$(subst ','\'',$(1))'
'$(subst $(CR),\$(CR),$(subst ','\'',$(1)))'
endef
echo-variable-%:

View File

@ -91,7 +91,7 @@ GARBAGE_DIRS += subtiers
# root.mk defines subtier_of_* variables, that map a normalized subdir path to
# a subtier name (e.g. subtier_of_memory_jemalloc = base)
$(addsuffix /$(CURRENT_TIER),$(CURRENT_DIRS)): %/$(CURRENT_TIER):
+@$(MAKE) -C $* $(if $(filter $*,$(tier_$(subtier_of_$(subst /,_,$*))_staticdirs)),,$(CURRENT_TIER))
$(call SUBMAKE,$(if $(filter $*,$(tier_$(subtier_of_$(subst /,_,$*))_staticdirs)),,$(CURRENT_TIER)),$*)
# Ensure existing stamps are up-to-date, but don't create one if submake didn't create one.
$(if $(wildcard $@),@$(STAMP_TOUCH))

View File

@ -346,8 +346,12 @@ ifdef MOZ_UPDATE_XTERM
# Its good not to have a newline at the end of the titlebar string because it
# makes the make -s output easier to read. Echo -n does not work on all
# platforms, but we can trick printf into doing it.
ifeq (.,$(relativesrcdir))
UPDATE_TITLE = printf '\033]0;%s in %s\007' $(1) $(2) ;
else
UPDATE_TITLE = printf '\033]0;%s in %s\007' $(1) $(relativesrcdir)/$(2) ;
endif
endif
ifdef MACH
ifndef NO_BUILDSTATUS_MESSAGES
@ -360,7 +364,7 @@ endif
define SUBMAKE # $(call SUBMAKE,target,directory,static)
+@$(UPDATE_TITLE)
+$(MAKE) $(if $(2),-C $(2)) $(1)
+@$(MAKE) $(if $(2),-C $(2)) $(1)
endef # The extra line is important here! don't delete it