From f08fea71691a4f0ada9d0fac0fd8b9d34195cbc1 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 9 Dec 2015 00:32:42 +0100 Subject: scripts/Makefile: fix GNUism and survive no perl Closes #555 Reported-by: Thomas Klausner --- scripts/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/Makefile.am b/scripts/Makefile.am index 5578f2813..80911ee36 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) -- cgit v1.2.3