Commit f08fea71 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

scripts/Makefile: fix GNUism and survive no perl

Closes #555

Reported-by: Thomas Klausner
parent 034317d2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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)