Use an external program to implement fetching with curl
[gitweb.git] / Makefile
index 504646a76876ec018aa45505fbe64fd36a75d1b4..35117fcf434ceedafc724e15fbb8bd4dce915615 100644 (file)
--- 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