Bug 1873959 - Only force generation of buildid.h and source-repo.h during export phase r=glandium

Differential Revision: https://phabricator.services.mozilla.com/D198180
This commit is contained in:
serge-sans-paille 2024-01-16 13:49:03 +00:00
parent ad83f0a573
commit 1549cd5949

View file

@ -24,7 +24,13 @@ endif
include $(topsrcdir)/config/config.mk include $(topsrcdir)/config/config.mk
ifneq (mobile/android,$(MOZ_BUILD_APP)) ifneq (mobile/android,$(MOZ_BUILD_APP))
$(MDDEPDIR)/buildid.h.stub $(MDDEPDIR)/source-repo.h.stub: FORCE # We only want to generate buildid.h once, during the export phase.
ifeq ($(MAKECMDGOALS),buildid.h)
$(MDDEPDIR)/buildid.h.stub: FORCE
endif
ifeq ($(MAKECMDGOALS),source-repo.h)
$(MDDEPDIR)/source-repo.h.stub: FORCE
endif
endif endif
source-repo.h: $(MDDEPDIR)/source-repo.h.stub source-repo.h: $(MDDEPDIR)/source-repo.h.stub
buildid.h: $(MDDEPDIR)/buildid.h.stub buildid.h: $(MDDEPDIR)/buildid.h.stub