aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-12-09 00:32:42 +0100
committerDaniel Stenberg <daniel@haxx.se>2015-12-09 00:34:12 +0100
commitf08fea71691a4f0ada9d0fac0fd8b9d34195cbc1 (patch)
tree0549df8c54e50ea7942d5fe00d818e47206d8237
parent034317d2af3987fb2f2c35533eca57faac8f2965 (diff)
scripts/Makefile: fix GNUism and survive no perl
Closes #555 Reported-by: Thomas Klausner
-rw-r--r--scripts/Makefile.am3
1 files changed, 2 insertions, 1 deletions
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)