Skip to content

Commit

Permalink
Makefile: do not allow gnu make to remove test-*.o files
Browse files Browse the repository at this point in the history
It appears parallel build (-j) gets confused.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Aug 31, 2007
1 parent 8dabdfc commit fa8fe28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit fa8fe28

Please sign in to comment.