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