1#*************************************************************************** 2# _ _ ____ _ 3# Project ___| | | | _ \| | 4# / __| | | | |_) | | 5# | (__| |_| | _ <| |___ 6# \___|\___/|_| \_\_____| 7# 8# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 9# 10# This software is licensed as described in the file COPYING, which 11# you should have received as part of this distribution. The terms 12# are also available at https://curl.se/docs/copyright.html. 13# 14# You may opt to use, copy, modify, merge, publish, distribute and/or sell 15# copies of the Software, and permit persons to whom the Software is 16# furnished to do so, under the terms of the COPYING file. 17# 18# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 19# KIND, either express or implied. 20# 21# SPDX-License-Identifier: curl 22# 23########################################################################### 24 25EXTRA_DIST = coverage.sh completion.pl firefox-db2pem.sh checksrc.pl \ 26 mk-ca-bundle.pl mk-unity.pl schemetable.c cd2nroff nroff2cd cdall cd2cd managen \ 27 dmaketgz maketgz release-tools.sh verify-release cmakelint.sh 28 29ZSH_FUNCTIONS_DIR = @ZSH_FUNCTIONS_DIR@ 30FISH_FUNCTIONS_DIR = @FISH_FUNCTIONS_DIR@ 31PERL = @PERL@ 32 33if USE_ZSH_COMPLETION 34ZSH_COMPLETION_FUNCTION_FILENAME = _curl 35endif 36if USE_FISH_COMPLETION 37FISH_COMPLETION_FUNCTION_FILENAME = curl.fish 38endif 39 40CLEANFILES = $(ZSH_COMPLETION_FUNCTION_FILENAME) $(FISH_COMPLETION_FUNCTION_FILENAME) 41 42all-local: $(ZSH_COMPLETION_FUNCTION_FILENAME) $(FISH_COMPLETION_FUNCTION_FILENAME) 43 44if USE_ZSH_COMPLETION 45$(ZSH_COMPLETION_FUNCTION_FILENAME): completion.pl 46if CROSSCOMPILING 47 @echo "NOTICE: we can't generate zsh completion when cross-compiling!" 48else # if not cross-compiling: 49 if test -z "$(PERL)"; then echo "No perl: can't install completion script"; else \ 50 $(PERL) $(srcdir)/completion.pl --curl $(top_builddir)/src/curl$(EXEEXT) --shell zsh > $@ ; fi 51endif 52endif 53 54if USE_FISH_COMPLETION 55$(FISH_COMPLETION_FUNCTION_FILENAME): completion.pl 56if CROSSCOMPILING 57 @echo "NOTICE: we can't generate fish completion when cross-compiling!" 58else # if not cross-compiling: 59 if test -z "$(PERL)"; then echo "No perl: can't install completion script"; else \ 60 $(PERL) $(srcdir)/completion.pl --curl $(top_builddir)/src/curl$(EXEEXT) --shell fish > $@ ; fi 61endif 62endif 63 64install-data-local: 65if CROSSCOMPILING 66 @echo "NOTICE: we can't install completion scripts when cross-compiling!" 67else # if not cross-compiling: 68if USE_ZSH_COMPLETION 69 if test -n "$(PERL)"; then \ 70 $(MKDIR_P) $(DESTDIR)$(ZSH_FUNCTIONS_DIR); \ 71 $(INSTALL_DATA) $(ZSH_COMPLETION_FUNCTION_FILENAME) $(DESTDIR)$(ZSH_FUNCTIONS_DIR)/$(ZSH_COMPLETION_FUNCTION_FILENAME) ; \ 72 fi 73endif 74if USE_FISH_COMPLETION 75 if test -n "$(PERL)"; then \ 76 $(MKDIR_P) $(DESTDIR)$(FISH_FUNCTIONS_DIR); \ 77 $(INSTALL_DATA) $(FISH_COMPLETION_FUNCTION_FILENAME) $(DESTDIR)$(FISH_FUNCTIONS_DIR)/$(FISH_COMPLETION_FUNCTION_FILENAME) ; \ 78 fi 79endif 80endif 81 82distclean: 83 rm -f $(CLEANFILES) 84