From 29d3d1d84753f608d340e96d3b10034b0b6a2aca Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Tue, 26 Aug 2008 14:34:35 -0700 Subject: [PATCH] Neaten up the handling of configure script regeneration in client.mk. Add a new 'configure-files' target, just for updating autoconf-generated files. --- client.mk | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/client.mk b/client.mk index 09558b4b16c2..3f51e9237ef6 100644 --- a/client.mk +++ b/client.mk @@ -162,6 +162,7 @@ endif endif # MOZ_BUILD_PROJECTS +# 'configure' scripts generated by autoconf. CONFIGURES := $(TOPSRCDIR)/configure CONFIGURES += $(TOPSRCDIR)/nsprpub/configure @@ -274,20 +275,15 @@ EXTRA_CONFIG_DEPS := \ $(wildcard $(TOPSRCDIR)/build/autoconf/*.m4) \ $(NULL) -$(TOPSRCDIR)/configure: $(TOPSRCDIR)/configure.in $(EXTRA_CONFIG_DEPS) +$(CONFIGURES): %: %.in $(EXTRA_CONFIG_DEPS) @echo Generating $@ using autoconf - cd $(TOPSRCDIR); $(AUTOCONF) - -$(TOPSRCDIR)/nsprpub/configure: $(TOPSRCDIR)/nsprpub/configure.in $(EXTRA_CONFIG_DEPS) - @echo Generating $@ using autoconf - cd $(TOPSRCDIR)/nsprpub; $(AUTOCONF) + cd $(@D); $(AUTOCONF) endif CONFIG_STATUS_DEPS := \ - $(TOPSRCDIR)/configure \ + $(wildcard $(CONFIGURES)) \ $(TOPSRCDIR)/allmakefiles.sh \ $(TOPSRCDIR)/.mozconfig.mk \ - $(wildcard $(TOPSRCDIR)/nsprpub/configure) \ $(wildcard $(TOPSRCDIR)/directory/c-sdk/configure) \ $(wildcard $(TOPSRCDIR)/config/milestone.txt) \ $(wildcard $(TOPSRCDIR)/config/chrome-versions.sh) \ @@ -307,7 +303,9 @@ ifdef MOZ_TOOLS CONFIGURE = $(TOPSRCDIR)/configure endif -configure:: $(CONFIGURES) +configure-files: $(CONFIGURES) + +configure:: configure-files ifdef MOZ_BUILD_PROJECTS @if test ! -d $(MOZ_OBJDIR); then $(MKDIR) $(MOZ_OBJDIR); else true; fi endif