Bug 1470552 - Update Makefile.in to refer to stub file target for buildid.h and source-repo.h generated in backend.mk draft
authorChris Manchester <cmanchester@mozilla.com>
Fri, 22 Jun 2018 15:10:39 -0700
changeset 809757 5636bcb29371707eb8da8602d420a514f8741b63
parent 809559 6b6f3f6ecf142908b3e437d3bc3fac75540a9bcb
push id113802
push userbmo:cmanchester@mozilla.com
push dateFri, 22 Jun 2018 22:10:56 +0000
bugs1470552
milestone62.0a1
Bug 1470552 - Update Makefile.in to refer to stub file target for buildid.h and source-repo.h generated in backend.mk MozReview-Commit-ID: CxLkQjX8veW
Makefile.in
--- a/Makefile.in
+++ b/Makefile.in
@@ -30,17 +30,23 @@ DIST_GARBAGE = config.cache config.log c
    netwerk/necko-config.h xpcom/xpcom-config.h xpcom/xpcom-private.h \
    .mozconfig.mk
 
 ifndef MOZ_PROFILE_USE
 # Automation builds should always have a new buildid, but for the sake of not
 # re-linking libxul on every incremental build we do not enforce this for
 # developer builds.  Tests always need a new buildid as well.
 ifneq (,$(MOZ_AUTOMATION)$(MOZ_BUILD_DATE)$(TEST_MOZBUILD))
-buildid.h source-repo.h: FORCE
+$(MDDEPDIR)/buildid.h.stub $(MDDEPDIR)/source-repo.h.stub: FORCE
+endif
+# Additionally, provide a dummy target during tests, because
+# faster/rules.mk will expect these targets to exist.
+ifdef TEST_MOZBUILD
+source-repo.h: $(MDDEPDIR)/source-repo.h.stub
+buildid.h: $(MDDEPDIR)/buildid.h.stub
 endif
 endif
 
 ifdef JS_STANDALONE
 configure_dir = $(topsrcdir)/js/src
 else
 configure_dir = $(topsrcdir)
 endif