1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-12 04:25:08 -05:00

scripts/Makefile: fix GNUism and survive no perl

Closes #555

Reported-by: Thomas Klausner
This commit is contained in:
Daniel Stenberg 2015-12-09 00:32:42 +01:00
parent 034317d2af
commit f08fea7169

View File

@ -6,7 +6,8 @@ ZSH_COMPLETION_FUNCTION_FILENAME = _curl
all-local: $(ZSH_COMPLETION_FUNCTION_FILENAME) all-local: $(ZSH_COMPLETION_FUNCTION_FILENAME)
$(ZSH_COMPLETION_FUNCTION_FILENAME): zsh.pl $(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: install-data-local:
$(MKDIR_P) $(DESTDIR)$(ZSH_FUNCTIONS_DIR) $(MKDIR_P) $(DESTDIR)$(ZSH_FUNCTIONS_DIR)