From: Daniel Stenberg Date: Tue, 8 Dec 2015 23:32:42 +0000 (+0100) Subject: scripts/Makefile: fix GNUism and survive no perl X-Git-Tag: curl-7_47_0~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f08fea71691a4f0ada9d0fac0fd8b9d34195cbc1;p=thirdparty%2Fcurl.git scripts/Makefile: fix GNUism and survive no perl Closes #555 Reported-by: Thomas Klausner --- diff --git a/scripts/Makefile.am b/scripts/Makefile.am index 5578f28132..80911ee369 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -6,7 +6,8 @@ ZSH_COMPLETION_FUNCTION_FILENAME = _curl all-local: $(ZSH_COMPLETION_FUNCTION_FILENAME) $(ZSH_COMPLETION_FUNCTION_FILENAME): zsh.pl - $(PERL) $< > $@ + @if ! test -x "$(PERL)"; then echo "No perl: can't install zsh.pl"; exit 0; fi + $(PERL) zsh.pl > $@ install-data-local: $(MKDIR_P) $(DESTDIR)$(ZSH_FUNCTIONS_DIR)