autotools: install shell completion files on cross build

Before 8.13.0, it was not possible to generate them as it required
 calling the compiled binary, but this has been fixed.

Co-authored-by: Samuel Henrique <samueloph@debian.org>

Closes #17159
This commit is contained in:
Helmut Grohne 2025-04-23 09:54:28 +01:00 committed by Daniel Stenberg
parent 596da988c4
commit 51170b52d1
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -57,9 +57,6 @@ $(FISH_COMPLETION_FUNCTION_FILENAME): completion.pl
endif
install-data-local:
if CROSSCOMPILING
@echo 'NOTICE: we cannot install completion scripts when cross-compiling'
else # if not cross-compiling:
if USE_ZSH_COMPLETION
if test -n "$(PERL)"; then \
$(MKDIR_P) $(DESTDIR)$(ZSH_FUNCTIONS_DIR); \
@ -72,7 +69,6 @@ if USE_FISH_COMPLETION
$(INSTALL_DATA) $(FISH_COMPLETION_FUNCTION_FILENAME) $(DESTDIR)$(FISH_FUNCTIONS_DIR)/$(FISH_COMPLETION_FUNCTION_FILENAME); \
fi
endif
endif
distclean:
rm -f $(CLEANFILES)