aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNick Hengeveld <nickh@reactrix.com>2006-04-04 05:33:18 -0700
committerJunio C Hamano <junkio@cox.net>2006-04-04 18:06:35 -0700
commit8d9fbe57b3acf756a9325884d11f004ef6f7e884 (patch)
tree8d101d2588c98787d8730f62ee7498deabff1fa9 /Makefile
parent42277bc81ce2f4450fe08239e4db34516f879c1d (diff)
downloadgit-8d9fbe57b3acf756a9325884d11f004ef6f7e884.tar.gz
git-8d9fbe57b3acf756a9325884d11f004ef6f7e884.tar.xz
http-fetch: add optional DAV-based pack list
If git is not built with NO_EXPAT, this patch changes git-http-fetch to attempt using DAV to get a list of remote packs and fall back to using objects/info/packs if the DAV request fails. Signed-off-by: Nick Hengeveld <nickh@reactrix.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 145099ada..c7d5ecf4f 100644
--- a/Makefile
+++ b/Makefile
@@ -513,6 +513,11 @@ exec_cmd.o: exec_cmd.c
http.o: http.c
$(CC) -o $*.o -c $(ALL_CFLAGS) -DGIT_USER_AGENT='"git/$(GIT_VERSION)"' $<
+ifdef NO_EXPAT
+http-fetch.o: http-fetch.c
+ $(CC) -o $*.o -c $(ALL_CFLAGS) -DNO_EXPAT $<
+endif
+
git-%$X: %.o $(GITLIBS)
$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)
@@ -535,7 +540,7 @@ git-imap-send$X: imap-send.o $(LIB_FILE)
git-http-fetch$X: fetch.o http.o http-fetch.o $(LIB_FILE)
$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
- $(LIBS) $(CURL_LIBCURL)
+ $(LIBS) $(CURL_LIBCURL) $(EXPAT_LIBEXPAT)
git-http-push$X: revision.o http.o http-push.o $(LIB_FILE)
$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \