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.
This commit is contained in:
Mike Shal 2016-01-25 14:36:36 -05:00
parent 50f2bff305
commit 638102d5d9

View File

@ -114,7 +114,9 @@ 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))))