Skip to content

Commit 8fced61

Browse files
author
Junio C Hamano
committed
Makefile: tighten git-http-{fetch,push} dependencies
Although our "git-%$X:" implicit target had dependency on $(GITLIBS) which included xdiff/lib.a, git-http-{fetch,push} had their own building rules and with an obsolete dependency on $(LIB_FILES). Update the rules to depend on $(GITLIBS), to make parallel build work correctly. Signed-off-by: Junio C Hamano <[email protected]>
1 parent 35c636e commit 8fced61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,11 +587,11 @@ git-ssh-push$X: rsh.o
587587
git-imap-send$X: imap-send.o $(LIB_FILE)
588588

589589
http.o http-fetch.o http-push.o: http.h
590-
git-http-fetch$X: fetch.o http.o http-fetch.o $(LIB_FILE)
590+
git-http-fetch$X: fetch.o http.o http-fetch.o $(GITLIBS)
591591
$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
592592
$(LIBS) $(CURL_LIBCURL) $(EXPAT_LIBEXPAT)
593593

594-
git-http-push$X: revision.o http.o http-push.o $(LIB_FILE)
594+
git-http-push$X: revision.o http.o http-push.o $(GITLIBS)
595595
$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
596596
$(LIBS) $(CURL_LIBCURL) $(EXPAT_LIBEXPAT)
597597

0 commit comments

Comments
 (0)