@matheusbsbs / matheus-bagliano / commits / 71459c193d
Fork 0

Makefile: remove and create libgit.a from scratch.

Foolishly I renamed diff.o around which caused an old diff.o taken out of libgit.a and got linked into resulting binary and exhibited mysterious breakage for many people. This borrows from the kernel Makefile (scripts/Makefile.build) to first remove the target and then recreate. Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Apr 25, 2006 at 23:11 UTC 71459c193d04870076efa0a387c317390b53e3e2
1 file changed +1 -1
Makefile
+1 -1
@@ -575,7 +575,7 @@ $(patsubst git-%$X,%.o,$(PROGRAMS)): $(GITLIBS)
575 $(DIFF_OBJS): diffcore.h
576
577 $(LIB_FILE): $(LIB_OBJS)
578 - $(AR) rcs $@ $(LIB_OBJS)
578 + rm -f $@ && $(AR) rcs $@ $(LIB_OBJS)
579
580 XDIFF_OBJS=xdiff/xdiffi.o xdiff/xprepare.o xdiff/xutils.o xdiff/xemit.o
581