]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
scripts: don't generate and install zsh completion when cross-compiling
authorAlessandro Ghedini <alessandro@ghedini.me>
Mon, 11 Jan 2016 22:22:25 +0000 (22:22 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 11 Jan 2016 22:32:30 +0000 (23:32 +0100)
scripts/Makefile.am

index e4855676612eed0359f8e08c1fbbb56f03de9eca..57724205f90558695e3354b0aa49dbacd557c6b4 100644 (file)
@@ -27,9 +27,17 @@ ZSH_COMPLETION_FUNCTION_FILENAME = _curl
 all-local: $(ZSH_COMPLETION_FUNCTION_FILENAME)
 
 $(ZSH_COMPLETION_FUNCTION_FILENAME): zsh.pl
+if CROSSCOMPILING
+       @echo "NOTICE: we can't generate zsh completion when cross-compiling!"
+else # if not cross-compiling:
        @if ! test -x "$(PERL)"; then echo "No perl: can't install zsh.pl"; exit 0; fi
        $(PERL) $(srcdir)/zsh.pl $(top_builddir)/src/curl > $@
+endif
 
 install-data-local:
+if CROSSCOMPILING
+       @echo "NOTICE: we can't install zsh completion when cross-compiling!"
+else # if not cross-compiling:
        $(MKDIR_P) $(DESTDIR)$(ZSH_FUNCTIONS_DIR)
        $(INSTALL_DATA) $(ZSH_COMPLETION_FUNCTION_FILENAME) $(DESTDIR)$(ZSH_FUNCTIONS_DIR)/$(ZSH_COMPLETION_FUNCTION_FILENAME)
+endif