Bug 939587 - js/src should regenerate build backend when necessary; r=glandium
authorGregory Szorc <gps@mozilla.com>
Mon, 18 Nov 2013 13:51:01 -0800
changeset 156401 133f7eae307872a6c0ef76f56900855cedd40c22
parent 156400 5b797c0177d3675a582924b8367bc370ce34fa31
child 156402 987504ee4b4cdc0d0c7c9e49debcef0e68f4f1e6
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersglandium
bugs939587
milestone28.0a1
Bug 939587 - js/src should regenerate build backend when necessary; r=glandium
js/src/Makefile.in
--- a/js/src/Makefile.in
+++ b/js/src/Makefile.in
@@ -143,16 +143,27 @@ USE_HOST_CXX = 1
 
 ifdef HAVE_DTRACE
 ifneq ($(OS_ARCH),Darwin)
 DTRACE_PROBE_OBJ = $(LIBRARY_NAME)-dtrace.$(OBJ_SUFFIX)
 endif
 MOZILLA_DTRACE_SRC = $(srcdir)/devtools/javascript-trace.d
 endif
 
+backend.RecursiveMakeBackend:
+	@echo "Build configuration changed. Regenerating backend."
+	$(PYTHON) config.status
+
+Makefile: backend.RecursiveMakeBackend
+	@$(TOUCH) $@
+
+include backend.RecursiveMakeBackend.pp
+
+default:: backend.RecursiveMakeBackend
+
 default::
 	$(call py_action,process_install_manifest,--no-remove $(DIST)/include _build_manifests/install/dist_include)
 
 ifneq (,$(CROSS_COMPILE)$(filter-out WINNT OS2,$(OS_ARCH)))
 # nsinstall doesn't get built until we enter config/ in the exports phase,
 # so we'll have to manually ensure it gets built here if we want to use
 # $(EXPORTS)
 export:: config/nsinstall$(HOST_BIN_SUFFIX)