Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 874543 - Restart Makefile execution if backend is regenerated; r=…
Browse files Browse the repository at this point in the history
…glandium
  • Loading branch information
indygreg committed May 23, 2013
1 parent 60a9bfc commit 1ccd331
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,16 @@ endif
# other rules for the default target or else it may not run in time.
ifndef MOZBUILD_BACKEND_CHECKED

# Since Makefile is listed as a global dependency, this has the
# unfortunate side-effect of invalidating all targets if it is executed.
# So e.g. if you are in /dom/bindings and /foo/moz.build changes,
# /dom/bindings will get invalidated. The upside is if the current
# Makefile/backend.mk is updated as a result of backend regeneration, we
# actually pick up the changes. This should reduce the amount of
# required clobbers and is thus the lesser evil.
Makefile: $(DEPTH)/backend.RecursiveMakeBackend.built
@$(TOUCH) $@

$(DEPTH)/backend.RecursiveMakeBackend.built:
@echo "Build configuration changed. Regenerating backend."
@cd $(DEPTH) && $(PYTHON) ./config.status
Expand Down
10 changes: 10 additions & 0 deletions js/src/config/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,16 @@ endif
# other rules for the default target or else it may not run in time.
ifndef MOZBUILD_BACKEND_CHECKED

# Since Makefile is listed as a global dependency, this has the
# unfortunate side-effect of invalidating all targets if it is executed.
# So e.g. if you are in /dom/bindings and /foo/moz.build changes,
# /dom/bindings will get invalidated. The upside is if the current
# Makefile/backend.mk is updated as a result of backend regeneration, we
# actually pick up the changes. This should reduce the amount of
# required clobbers and is thus the lesser evil.
Makefile: $(DEPTH)/backend.RecursiveMakeBackend.built
@$(TOUCH) $@

$(DEPTH)/backend.RecursiveMakeBackend.built:
@echo "Build configuration changed. Regenerating backend."
@cd $(DEPTH) && $(PYTHON) ./config.status
Expand Down

0 comments on commit 1ccd331

Please sign in to comment.