2
0

Makefile.am 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. EXTRA_DIST = coverage.sh completion.pl firefox-db2pem.sh checksrc.pl \
  25. mk-ca-bundle.pl mk-unity.pl schemetable.c cd2nroff nroff2cd cdall cd2cd managen \
  26. dmaketgz maketgz release-tools.sh verify-release cmakelint.sh
  27. ZSH_FUNCTIONS_DIR = @ZSH_FUNCTIONS_DIR@
  28. FISH_FUNCTIONS_DIR = @FISH_FUNCTIONS_DIR@
  29. PERL = @PERL@
  30. if USE_ZSH_COMPLETION
  31. ZSH_COMPLETION_FUNCTION_FILENAME = _curl
  32. endif
  33. if USE_FISH_COMPLETION
  34. FISH_COMPLETION_FUNCTION_FILENAME = curl.fish
  35. endif
  36. CLEANFILES = $(ZSH_COMPLETION_FUNCTION_FILENAME) $(FISH_COMPLETION_FUNCTION_FILENAME)
  37. all-local: $(ZSH_COMPLETION_FUNCTION_FILENAME) $(FISH_COMPLETION_FUNCTION_FILENAME)
  38. if USE_ZSH_COMPLETION
  39. $(ZSH_COMPLETION_FUNCTION_FILENAME): completion.pl
  40. if CROSSCOMPILING
  41. @echo "NOTICE: we can't generate zsh completion when cross-compiling!"
  42. else # if not cross-compiling:
  43. if test -z "$(PERL)"; then echo "No perl: can't install completion script"; else \
  44. $(PERL) $(srcdir)/completion.pl --curl $(top_builddir)/src/curl$(EXEEXT) --shell zsh > $@ ; fi
  45. endif
  46. endif
  47. if USE_FISH_COMPLETION
  48. $(FISH_COMPLETION_FUNCTION_FILENAME): completion.pl
  49. if CROSSCOMPILING
  50. @echo "NOTICE: we can't generate fish completion when cross-compiling!"
  51. else # if not cross-compiling:
  52. if test -z "$(PERL)"; then echo "No perl: can't install completion script"; else \
  53. $(PERL) $(srcdir)/completion.pl --curl $(top_builddir)/src/curl$(EXEEXT) --shell fish > $@ ; fi
  54. endif
  55. endif
  56. install-data-local:
  57. if CROSSCOMPILING
  58. @echo "NOTICE: we can't install completion scripts when cross-compiling!"
  59. else # if not cross-compiling:
  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. endif
  73. distclean:
  74. rm -f $(CLEANFILES)