aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2009-08-05 01:01:56 -0400
committerJunio C Hamano <gitster@pobox.com>2009-08-05 10:34:09 -0700
commita2d725b7bdf756ade7680945ebc3fb62e5dd8bcc (patch)
tree7e2a19b27a951077ccbd8076fc1ac729d329375b /Makefile
parent6eb996b5707b6d14cf9875a9231f4e909a443665 (diff)
downloadgit-a2d725b7bdf756ade7680945ebc3fb62e5dd8bcc.tar.gz
git-a2d725b7bdf756ade7680945ebc3fb62e5dd8bcc.tar.xz
Use an external program to implement fetching with curl
Use the transport native helper mechanism to fetch by http (and ftp, etc). Signed-off-by: Daniel Barkalow <barkalow@iabervon.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 504646a76..35117fcf4 100644
--- a/Makefile
+++ b/Makefile
@@ -981,6 +981,7 @@ else
CURL_LIBCURL = -lcurl
endif
BUILTIN_OBJS += builtin-http-fetch.o
+ PROGRAMS += git-remote-http$X git-remote-https$X git-remote-ftp$X git-http-fetch$X
EXTLIBS += $(CURL_LIBCURL)
LIB_OBJS += http.o http-walker.o
curl_check := $(shell (echo 070908; curl-config --vernum) | sort -r | sed -ne 2p)
@@ -1491,6 +1492,10 @@ git-http-push$X: revision.o http.o http-push.o $(GITLIBS)
$(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
$(LIBS) $(CURL_LIBCURL) $(EXPAT_LIBEXPAT)
+git-remote-http$X git-remote-https$X git-remote-ftp$X: remote-curl.o http.o http-walker.o $(GITLIBS)
+ $(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
+ $(LIBS) $(CURL_LIBCURL) $(EXPAT_LIBEXPAT)
+
$(LIB_OBJS) $(BUILTIN_OBJS): $(LIB_H)
$(patsubst git-%$X,%.o,$(PROGRAMS)) git.o: $(LIB_H) $(wildcard */*.h)
builtin-revert.o wt-status.o: wt-status.h