Makefile.am 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. #***************************************************************************
  2. # _ _ ____ _
  3. # Project ___| | | | _ \| |
  4. # / __| | | | |_) | |
  5. # | (__| |_| | _ <| |___
  6. # \___|\___/|_| \_\_____|
  7. #
  8. # Copyright (C) 1998 - 2021, 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. ###########################################################################
  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)
  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. BUFREF.md \
  42. BUG-BOUNTY.md \
  43. BUGS.md \
  44. CHECKSRC.md \
  45. CIPHERS.md \
  46. CMakeLists.txt \
  47. CODE_OF_CONDUCT.md \
  48. CODE_REVIEW.md \
  49. CODE_STYLE.md \
  50. CONTRIBUTE.md \
  51. CURL-DISABLE.md \
  52. DEPRECATE.md \
  53. DYNBUF.md \
  54. EXPERIMENTAL.md \
  55. FAQ \
  56. FEATURES.md \
  57. GOVERNANCE.md \
  58. HELP-US.md \
  59. HISTORY.md \
  60. HSTS.md \
  61. HTTP-COOKIES.md \
  62. HTTP2.md \
  63. HTTP3.md \
  64. HYPER.md \
  65. INSTALL \
  66. INSTALL.cmake \
  67. INSTALL.md \
  68. INTERNALS.md \
  69. KNOWN_BUGS \
  70. MAIL-ETIQUETTE \
  71. MQTT.md \
  72. NEW-PROTOCOL.md \
  73. options-in-versions \
  74. PARALLEL-TRANSFERS.md \
  75. README.md \
  76. RELEASE-PROCEDURE.md \
  77. RUSTLS.md \
  78. ROADMAP.md \
  79. SECURITY-PROCESS.md \
  80. SSL-PROBLEMS.md \
  81. SSLCERTS.md \
  82. THANKS \
  83. TODO \
  84. TheArtOfHttpScripting.md \
  85. URL-SYNTAX.md \
  86. VERSIONS.md
  87. MAN2HTML= roffit $< >$@
  88. SUFFIXES = .1 .html .pdf
  89. # $(abs_builddir) is to disable VPATH when searching for this file, which
  90. # would otherwise find the copy in $(srcdir) which breaks the $(HUGE)
  91. # rule in src/Makefile.am in out-of-tree builds that references the file in the
  92. # build directory.
  93. #
  94. # First, seed the used copy of curl.1 with the prebuilt copy (in an out-of-tree
  95. # build), then run make recursively to rebuild it only if its dependencies
  96. # have changed.
  97. $(abs_builddir)/curl.1:
  98. if test "$(top_builddir)x" != "$(top_srcdir)x" -a -e "$(srcdir)/curl.1"; then \
  99. $(INSTALL_DATA) "$(srcdir)/curl.1" $@; fi
  100. cd cmdline-opts && $(MAKE)
  101. html: $(HTMLPAGES)
  102. cd libcurl && $(MAKE) html
  103. pdf: $(PDFPAGES)
  104. cd libcurl && $(MAKE) pdf
  105. .1.html:
  106. $(MAN2HTML)
  107. .1.pdf:
  108. @(foo=`echo $@ | sed -e 's/\.[0-9]$$//g'`; \
  109. groff -Tps -man $< >$$foo.ps; \
  110. ps2pdf $$foo.ps $@; \
  111. rm $$foo.ps; \
  112. echo "converted $< to $@")
  113. distclean:
  114. rm -f $(CLEANFILES)