summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlessandro Ghedini <alessandro@ghedini.me>2016-01-11 22:22:25 +0000
committerDaniel Stenberg <daniel@haxx.se>2016-01-11 23:32:30 +0100
commitebfe00c05001f9830aefb0ea10cdeccc4f27c66b (patch)
tree8c6628ce9fff0e71532fd89fd045fb659027c3ad /scripts
parentfb7cbf75a5dba5907c36852d8040f4e24a0e6fab (diff)
downloadcurl-ebfe00c05001f9830aefb0ea10cdeccc4f27c66b.tar.gz
scripts: don't generate and install zsh completion when cross-compiling
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.am8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
index e48556766..57724205f 100644
--- a/scripts/Makefile.am
+++ b/scripts/Makefile.am
@@ -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