From 6a640d9c5f260eca51560a4bec2472e381fc790e Mon Sep 17 00:00:00 2001 From: "jag@tty.nl" Date: Wed, 13 Feb 2008 05:41:49 -0800 Subject: [PATCH] Bug 416529: Don't include .deps/.all.pp when not needed. r=benjamin, a=pavlov This to prevent unnecessarily generating the file due to the FORCE prereq. --- config/rules.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/rules.mk b/config/rules.mk index a589bf7393b5..24c4f562b7c6 100644 --- a/config/rules.mk +++ b/config/rules.mk @@ -1991,6 +1991,7 @@ endif # COMPILER_DEPEND $(MDDEPDIR): @if test ! -d $@; then echo Creating $@; rm -rf $@; mkdir $@; else true; fi +ifneq (,$(filter-out all chrome default export realchrome tools clean clobber clobber_all distclean realclean,$(MAKECMDGOALS))) ifneq (,$(OBJS)$(XPIDLSRCS)$(SDK_XPIDLSRCS)$(SIMPLE_PROGRAMS)) MDDEPEND_FILES := $(strip $(wildcard $(MDDEPDIR)/*.pp)) @@ -2002,14 +2003,17 @@ ifdef PERL # The script has an advantage over including the *.pp files directly # because it handles the case when header files are removed from the build. # 'make' would complain that there is no way to build missing headers. +ifeq (,$(MAKE_RESTARTS)) $(MDDEPDIR)/.all.pp: FORCE @$(PERL) $(BUILD_TOOLS)/mddepend.pl $@ $(MDDEPEND_FILES) +endif -include $(MDDEPDIR)/.all.pp else include $(MDDEPEND_FILES) endif endif +endif endif #############################################################################