Makefile.am 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. #***************************************************************************
  2. # _ _ ____ _
  3. # Project ___| | | | _ \| |
  4. # / __| | | | |_) | |
  5. # | (__| |_| | _ <| |___
  6. # \___|\___/|_| \_\_____|
  7. #
  8. # Copyright (C) 1998 - 2019, 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.haxx.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. ###########################################################################
  22. AUTOMAKE_OPTIONS = foreign no-dependencies
  23. # EXTRA_DIST breaks with $(abs_builddir) so build it using this variable
  24. # but distribute it (using the relative file name) in the next variable
  25. man_MANS = $(abs_builddir)/curl.1
  26. noinst_man_MANS = curl.1 mk-ca-bundle.1
  27. dist_man_MANS = curl-config.1
  28. GENHTMLPAGES = curl.html curl-config.html mk-ca-bundle.html
  29. PDFPAGES = curl.pdf curl-config.pdf mk-ca-bundle.pdf
  30. MANDISTPAGES = curl.1.dist curl-config.1.dist
  31. HTMLPAGES = $(GENHTMLPAGES) index.html
  32. # Build targets in this file (.) before cmdline-opts to ensure that
  33. # the curl.1 rule below runs first
  34. SUBDIRS = . cmdline-opts
  35. DIST_SUBDIRS = $(SUBDIRS) examples libcurl
  36. CLEANFILES = $(GENHTMLPAGES) $(PDFPAGES) $(MANDISTPAGES) curl.1
  37. EXTRA_DIST = \
  38. $(noinst_man_MANS) \
  39. ALTSVC.md \
  40. BINDINGS.md \
  41. BUGS \
  42. CHECKSRC.md \
  43. CIPHERS.md \
  44. CMakeLists.txt \
  45. CODE_OF_CONDUCT.md \
  46. CODE_STYLE.md \
  47. CONTRIBUTE.md \
  48. DEPRECATE.md \
  49. FAQ \
  50. FEATURES \
  51. GOVERNANCE.md \
  52. HELP-US.md \
  53. HISTORY.md \
  54. HTTP-COOKIES.md \
  55. HTTP2.md \
  56. INSTALL \
  57. INSTALL.cmake \
  58. INSTALL.md \
  59. INTERNALS.md \
  60. KNOWN_BUGS \
  61. LICENSE-MIXING.md \
  62. MAIL-ETIQUETTE \
  63. README.cmake \
  64. README.md \
  65. README.netware \
  66. README.win32 \
  67. RELEASE-PROCEDURE.md \
  68. RESOURCES \
  69. ROADMAP.md \
  70. SECURITY-PROCESS.md \
  71. SSL-PROBLEMS.md \
  72. SSLCERTS.md \
  73. THANKS \
  74. TODO \
  75. TheArtOfHttpScripting \
  76. VERSIONS
  77. MAN2HTML= roffit $< >$@
  78. SUFFIXES = .1 .html .pdf
  79. # $(abs_builddir) is to disable VPATH when searching for this file, which
  80. # would otherwise find the copy in $(srcdir) which breaks the $(HUGE)
  81. # rule in src/Makefile.am in out-of-tree builds that references the file in the
  82. # build directory.
  83. #
  84. # First, seed the used copy of curl.1 with the prebuilt copy (in an out-of-tree
  85. # build), then run make recursively to rebuild it only if its dependencies
  86. # have changed.
  87. $(abs_builddir)/curl.1:
  88. if test "$(top_builddir)x" != "$(top_srcdir)x" -a -e "$(srcdir)/curl.1"; then \
  89. $(INSTALL_DATA) "$(srcdir)/curl.1" $@; fi
  90. cd cmdline-opts && $(MAKE)
  91. html: $(HTMLPAGES)
  92. cd libcurl && $(MAKE) html
  93. pdf: $(PDFPAGES)
  94. cd libcurl && $(MAKE) pdf
  95. .1.html:
  96. $(MAN2HTML)
  97. .1.pdf:
  98. @(foo=`echo $@ | sed -e 's/\.[0-9]$$//g'`; \
  99. groff -Tps -man $< >$$foo.ps; \
  100. ps2pdf $$foo.ps $@; \
  101. rm $$foo.ps; \
  102. echo "converted $< to $@")
  103. distclean:
  104. rm -f $(CLEANFILES)