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>
This commit is contained in:
parent
8dabdfcc1b
commit
fa8fe28c60
2
Makefile
2
Makefile
@ -969,6 +969,8 @@ test-date$X: date.o ctype.o
|
|||||||
|
|
||||||
test-delta$X: diff-delta.o patch-delta.o
|
test-delta$X: diff-delta.o patch-delta.o
|
||||||
|
|
||||||
|
.PRECIOUS: $(patsubst test-%$X,test-%.o,$(TEST_PROGRAMS))
|
||||||
|
|
||||||
test-%$X: test-%.o $(GITLIBS)
|
test-%$X: test-%.o $(GITLIBS)
|
||||||
$(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)
|
$(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user