From 1549cd59493fa4392c4a38630d6f7361cd2c5e63 Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Tue, 16 Jan 2024 13:49:03 +0000 Subject: [PATCH] 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 --- Makefile.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 2d75b534c530..2658629f9183 100644 --- a/Makefile.in +++ b/Makefile.in @@ -24,7 +24,13 @@ endif include $(topsrcdir)/config/config.mk 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 source-repo.h: $(MDDEPDIR)/source-repo.h.stub buildid.h: $(MDDEPDIR)/buildid.h.stub