]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
scripts/Makefile: fix GNUism and survive no perl
authorDaniel Stenberg <daniel@haxx.se>
Tue, 8 Dec 2015 23:32:42 +0000 (00:32 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 8 Dec 2015 23:34:12 +0000 (00:34 +0100)
Closes #555

Reported-by: Thomas Klausner
scripts/Makefile.am

index 5578f281329b3abec74bcd47f6ca0b85ed4bd365..80911ee369530c25135c76de4e2e7b3b579471e2 100644 (file)
@@ -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)