Bug 1242663 - Add targets for each backend dependency; r=ted
authorMike Shal <mshal@mozilla.com>
Mon, 25 Jan 2016 14:36:36 -0500
changeset 281818 f8fc7a05f96bcbb9be3f6d079df1ee16d53d3e23
parent 281817 5760541fd240b043b2f6361810e522d8652a56f2
child 281819 9a1977d9b21b1a4ba1fc5fdaff4240af83088271
push id29948
push usercbook@mozilla.com
push dateWed, 27 Jan 2016 11:00:24 +0000
treeherdermozilla-central@211a4c710fb6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs1242663
milestone47.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1242663 - Add targets for each backend dependency; r=ted We need to ignore dependencies on backend files that have been removed, otherwise removing a Makefile.in will require a clobber.
Makefile.in
--- a/Makefile.in
+++ b/Makefile.in
@@ -109,17 +109,19 @@ backend: $(BUILD_BACKEND_FILES)
 $(subst .,%,$(BUILD_BACKEND_FILES)):
 	@echo 'Build configuration changed. Regenerating backend.'
 	$(PYTHON) config.status
 
 Makefile: $(BUILD_BACKEND_FILES)
 	@$(TOUCH) $@
 
 define build_backend_rule
-$(1): $$(shell cat $(1).in)
+$(1)_files := $$(shell cat $(1).in)
+$(1): $$($(1)_files)
+$$($(1)_files):
 
 endef
 $(foreach file,$(BUILD_BACKEND_FILES),$(eval $(call build_backend_rule,$(file))))
 
 default:: $(BUILD_BACKEND_FILES)
 endif
 
 install_manifests := \