summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-08-31 02:14:31 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-08-31 02:14:31 (GMT)
commitfa8fe28c60e18063ebccbc3b4810f72740daf3c6 (patch)
treedfe6e71e284b77d2a03c51e57af9bddbf6b8865f
parent8dabdfcc1bca58884eb161ab1d9b9416da1090c8 (diff)
downloadgit-fa8fe28c60e18063ebccbc3b4810f72740daf3c6.zip
git-fa8fe28c60e18063ebccbc3b4810f72740daf3c6.tar.gz
git-fa8fe28c60e18063ebccbc3b4810f72740daf3c6.tar.bz2
Makefile: do not allow gnu make to remove test-*.o files
It appears parallel build (-j) gets confused. Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4eb4637..51af531 100644
--- a/Makefile
+++ b/Makefile
@@ -969,6 +969,8 @@ test-date$X: date.o ctype.o
test-delta$X: diff-delta.o patch-delta.o
+.PRECIOUS: $(patsubst test-%$X,test-%.o,$(TEST_PROGRAMS))
+
test-%$X: test-%.o $(GITLIBS)
$(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)