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>
Michael J Gruber committed
May 26, 2010 at 16:24 UTC
70b89f871e1afa1fe3ffa22bf3e2043d4405954a
1 file changed
+3
-2
Makefile
+3
-2
@@ -1841,12 +1841,13 @@ endif
1841
ln -s "git$X" "$$execdir/$$p" 2>/dev/null || \
1842
cp "$$execdir/git$X" "$$execdir/$$p" || exit; \
1843
done; } && \
1844
- { for p in $(REMOTE_CURL_ALIASES); do \
1844
+ { test x"$(REMOTE_CURL_ALIASES)" = x || \
1845
+ { for p in $(REMOTE_CURL_ALIASES); do \
1846
$(RM) "$$execdir/$$p" && \
1847
ln "$$execdir/git-remote-http$X" "$$execdir/$$p" 2>/dev/null || \
1848
ln -s "git-remote-http$X" "$$execdir/$$p" 2>/dev/null || \
1849
cp "$$execdir/git-remote-http$X" "$$execdir/$$p" || exit; \
1849
- done; } && \
1850
+ done; } ; } && \
1851
./check_bindir "z$$bindir" "z$$execdir" "$$bindir/git-add$X"
1852
1853
install-doc: