Makefile.am (2865B)
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 25 EXTRA_DIST = coverage.sh completion.pl firefox-db2pem.sh checksrc.pl checksrc-all.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 mdlinkcheck \ 28 CMakeLists.txt pythonlint.sh randdisable wcurl top-complexity extract-unit-protos 29 30 dist_bin_SCRIPTS = wcurl 31 32 ZSH_FUNCTIONS_DIR = @ZSH_FUNCTIONS_DIR@ 33 FISH_FUNCTIONS_DIR = @FISH_FUNCTIONS_DIR@ 34 PERL = @PERL@ 35 36 if USE_ZSH_COMPLETION 37 ZSH_COMPLETION_FUNCTION_FILENAME = _curl 38 endif 39 if USE_FISH_COMPLETION 40 FISH_COMPLETION_FUNCTION_FILENAME = curl.fish 41 endif 42 43 CLEANFILES = $(ZSH_COMPLETION_FUNCTION_FILENAME) $(FISH_COMPLETION_FUNCTION_FILENAME) 44 45 all-local: $(ZSH_COMPLETION_FUNCTION_FILENAME) $(FISH_COMPLETION_FUNCTION_FILENAME) 46 47 if USE_ZSH_COMPLETION 48 $(ZSH_COMPLETION_FUNCTION_FILENAME): completion.pl 49 if test -z "$(PERL)"; then echo 'No perl: cannot generate completion script'; else \ 50 $(PERL) $(srcdir)/completion.pl --opts-dir $(top_srcdir)/docs/cmdline-opts --shell zsh > $@; fi 51 endif 52 53 if USE_FISH_COMPLETION 54 $(FISH_COMPLETION_FUNCTION_FILENAME): completion.pl 55 if test -z "$(PERL)"; then echo 'No perl: cannot generate completion script'; else \ 56 $(PERL) $(srcdir)/completion.pl --opts-dir $(top_srcdir)/docs/cmdline-opts --shell fish > $@; fi 57 endif 58 59 install-data-local: 60 if USE_ZSH_COMPLETION 61 if test -n "$(PERL)"; then \ 62 $(MKDIR_P) $(DESTDIR)$(ZSH_FUNCTIONS_DIR); \ 63 $(INSTALL_DATA) $(ZSH_COMPLETION_FUNCTION_FILENAME) $(DESTDIR)$(ZSH_FUNCTIONS_DIR)/$(ZSH_COMPLETION_FUNCTION_FILENAME); \ 64 fi 65 endif 66 if USE_FISH_COMPLETION 67 if test -n "$(PERL)"; then \ 68 $(MKDIR_P) $(DESTDIR)$(FISH_FUNCTIONS_DIR); \ 69 $(INSTALL_DATA) $(FISH_COMPLETION_FUNCTION_FILENAME) $(DESTDIR)$(FISH_FUNCTIONS_DIR)/$(FISH_COMPLETION_FUNCTION_FILENAME); \ 70 fi 71 endif 72 73 distclean: 74 rm -f $(CLEANFILES)