diff options
author | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-11-04 18:55:36 +0000 |
---|---|---|
committer | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-11-04 18:55:36 +0000 |
commit | 0591737d5dc63666aa34b5946c300eb9e56cc4b8 (patch) | |
tree | f113054d34a5de926b7e60f2c5f704efa8f66c33 | |
parent | 67a5d43141539e6048ff9e7d061e9f43125e93b3 (diff) |
Attempt to exclude certain files from the dependency lists to prevent
excessive recompilation when the thornlist is changed.
Tested under Linux.
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1134 17b73243-c579-4c4c-a9d2-2d5706c11dac
-rw-r--r-- | lib/make/make.config.defn.in | 4 | ||||
-rw-r--r-- | lib/make/make.config.rules.in | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/make/make.config.defn.in b/lib/make/make.config.defn.in index 11abe3c3..64408aea 100644 --- a/lib/make/make.config.defn.in +++ b/lib/make/make.config.defn.in @@ -70,6 +70,10 @@ CXX_DEPEND_OUT = @CXX_DEPEND_OUT@ F_DEPEND_OUT = @F_DEPEND_OUT@ F77_DEPEND_OUT = @F77_DEPEND_OUT@ +# Exclude some files from the dependency lists + +DEP_EXCLUDE_FILES = cctk_arguments\.h|definethisthorn\.h|FParameters.h|CParameters\.h + # Command used to get the working directory GET_WD = @GET_WD@ diff --git a/lib/make/make.config.rules.in b/lib/make/make.config.rules.in index c2ac5c1f..d8eaeea2 100644 --- a/lib/make/make.config.rules.in +++ b/lib/make/make.config.rules.in @@ -26,7 +26,8 @@ DIVIDER = $(DIVEL)$(DIVEL)$(DIVEL)$(DIVEL) ifeq ($(strip $(PERL_BACKUP_NECESSARY)),) define DEPENDENCY_FIXER - $(PERL) -pi -e "s,([^:]*),$(basename $@).o $(basename $@).d, if(m/: /)" $@ + $(PERL) -pi -e "s,([^:]*),$(basename $@).o $(basename $@).d, if(m/: /);\ + s:\s[^\s]*[/\\\]($(DEP_EXCLUDE_FILES))\b::g" $@ endef else define DEPENDENCY_FIXER |