From 8c217ff59b154985a8321420968d9803601ee06a Mon Sep 17 00:00:00 2001 From: rhaas Date: Sun, 15 Jul 2012 18:17:04 +0000 Subject: have -reconfig target execute -cleandeps after reconfiguration this can be required if the reconfiguration changes dependency relationships git-svn-id: http://svn.cactuscode.org/flesh/trunk@4844 17b73243-c579-4c4c-a9d2-2d5706c11dac --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 61de8c90..02a157f9 100644 --- a/Makefile +++ b/Makefile @@ -830,7 +830,9 @@ $(addsuffix -reconfig,$(CONFIGURATIONS)): int_version echo "to see what these are."; \ exit 2; \ fi; \ - if ($(SETUP_ENV) $(PERL) -s $(SETUP) -config_file=$(CONFIGS_DIR)/$(@:%-reconfig=%)/config-info $(@:%-reconfig=%)) ; then : ; else \ + if ($(SETUP_ENV) $(PERL) -s $(SETUP) -config_file=$(CONFIGS_DIR)/$(@:%-reconfig=%)/config-info $(@:%-reconfig=%)) ; then \ + $(MAKE) $(@:%-reconfig=%)-cleandeps ; \ + else \ echo "" ; \ echo "Error reconfiguring $@" ; \ rm -f "$(CONFIGS_DIR)/$(@:%-reconfig=%)/config-data/cctk_Config.h";\ -- cgit v1.2.3