diff options
author | Daniel Stenberg <daniel@haxx.se> | 2015-12-09 00:32:42 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-12-09 00:34:12 +0100 |
commit | f08fea71691a4f0ada9d0fac0fd8b9d34195cbc1 (patch) | |
tree | 0549df8c54e50ea7942d5fe00d818e47206d8237 /scripts | |
parent | 034317d2af3987fb2f2c35533eca57faac8f2965 (diff) | |
download | curl-f08fea71691a4f0ada9d0fac0fd8b9d34195cbc1.tar.gz |
scripts/Makefile: fix GNUism and survive no perl
Closes #555
Reported-by: Thomas Klausner
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.am | 3 |
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) |