aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreschnett <eschnett@83718e91-0e4f-0410-abf4-91180603181f>2013-08-21 17:35:28 +0000
committereschnett <eschnett@83718e91-0e4f-0410-abf4-91180603181f>2013-08-21 17:35:28 +0000
commitf5ca7f310773821007ffe2fb7e6ef7e79db277ea (patch)
treecca11c799b1adf111802bab17029004c5ba22a5e
parent5f23607b719dbde5d69b3be9b3032c3b975c5983 (diff)
Delete partially generated object files before recompilingHEADmaster
git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/Formaline/trunk@239 83718e91-0e4f-0410-abf4-91180603181f
-rw-r--r--src/make.configuration.deps2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/make.configuration.deps b/src/make.configuration.deps
index 64cc8fb..e3bd39c 100644
--- a/src/make.configuration.deps
+++ b/src/make.configuration.deps
@@ -182,6 +182,7 @@ $(TARBALL_DIR)/config-Cactus.ccldeps:
$(TARBALL_DIR)/flesh-Cactus.o: $(TARBALL_DIR)/flesh-Cactus.c
@echo "Creating Formaline tarball for the flesh"
cd $(TARBALL_DIR) && \
+ $(RM) -f $(^:%.c=%-????.o) && \
$(CC) $(CFLAGS) -c $(^:%.c=%-????.c) && \
$(CC) $(CFLAGS) -c $^
@@ -238,6 +239,7 @@ $(TARBALL_DIR)/flesh-Cactus.ccldeps:
$(TARBALL_DIR)/thorn-%.o: $(TARBALL_DIR)/thorn-%.c
@echo "Creating Formaline tarball for thorn $*"
cd $(TARBALL_DIR) && \
+ $(RM) -f $(patsubst $(TARBALL_DIR)/%, %, $(^:%.c=%-????.o)) && \
$(CC) $(CFLAGS) -c $(patsubst $(TARBALL_DIR)/%, %, $(^:%.c=%-????.c)) && \
$(CC) $(CFLAGS) -c $(patsubst $(TARBALL_DIR)/%, %, $^)