projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8dabdfc
)
Makefile: do not allow gnu make to remove test-*.o files
author
Junio C Hamano
<gitster@pobox.com>
Fri, 31 Aug 2007 02:14:31 +0000
(19:14 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 31 Aug 2007 02:14:31 +0000
(19:14 -0700)
It appears parallel build (-j) gets confused.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index 4eb463797adc693dc168b926b6932ff53f17d0b1..51af531c9a0c23dcd577bc73ccd14940ed20ae57 100644
(file)
--- 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)