Bug 1947164 - Fix pruning of build-id rebuild r=glandium

Adjust to internal changes so that buildid.h and source-repo.h are
generated only once (and not twice - or never) upon nop build.

Differential Revision: https://phabricator.services.mozilla.com/D237591
This commit is contained in:
serge-sans-paille
2025-02-19 07:40:50 +00:00
parent 64850361b9
commit 8c497acfc5

View File

@@ -24,12 +24,10 @@ endif
include $(topsrcdir)/config/config.mk
ifneq (mobile/android,$(MOZ_BUILD_APP))
# 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
# We only want to generate buildid.h once, during the (recurse) export phase.
# faster make build the files explicitly so also match thoses
ifneq ($(filter $(MAKECMDGOALS),recurse_export buildid.h source-repo.h),)
$(MDDEPDIR)/buildid.h.stub $(MDDEPDIR)/source-repo.h.stub: FORCE
endif
endif
source-repo.h: $(MDDEPDIR)/source-repo.h.stub