summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichael J Gruber <git@drmicha.warpmail.net>2010-05-26 14:24:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-05-28 23:46:09 (GMT)
commit70b89f871e1afa1fe3ffa22bf3e2043d4405954a (patch)
tree3d54ca7095847e03e6b9bd21659bb7dbf0429327 /Makefile
parentdfea79004c54bc96143386d6ac22de500ba4f747 (diff)
downloadgit-70b89f871e1afa1fe3ffa22bf3e2043d4405954a.zip
git-70b89f871e1afa1fe3ffa22bf3e2043d4405954a.tar.gz
git-70b89f871e1afa1fe3ffa22bf3e2043d4405954a.tar.bz2
Makefile: reenable install with NO_CURL
Setting NO_CURL leaves some variables like REMOTE_CURL_ALIASES empty, which creates no fun when for-looping over $(REMOTE_CURL_ALIASES) unconditionally. Make it conditional. Reported-by: Paul Walker <PWalker752@aol.com> Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5b86806..02d6ea3 100644
--- a/Makefile
+++ b/Makefile
@@ -1841,12 +1841,13 @@ endif
ln -s "git$X" "$$execdir/$$p" 2>/dev/null || \
cp "$$execdir/git$X" "$$execdir/$$p" || exit; \
done; } && \
- { for p in $(REMOTE_CURL_ALIASES); do \
+ { test x"$(REMOTE_CURL_ALIASES)" = x || \
+ { for p in $(REMOTE_CURL_ALIASES); do \
$(RM) "$$execdir/$$p" && \
ln "$$execdir/git-remote-http$X" "$$execdir/$$p" 2>/dev/null || \
ln -s "git-remote-http$X" "$$execdir/$$p" 2>/dev/null || \
cp "$$execdir/git-remote-http$X" "$$execdir/$$p" || exit; \
- done; } && \
+ done; } ; } && \
./check_bindir "z$$bindir" "z$$execdir" "$$bindir/git-add$X"
install-doc: