2
0

Makefile.am 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. AUTOMAKE_OPTIONS = foreign no-dependencies
  25. # EXTRA_DIST breaks with $(abs_builddir) so build it using this variable
  26. # but distribute it (using the relative file name) in the next variable
  27. man_MANS = $(abs_builddir)/curl.1
  28. noinst_man_MANS = curl.1 mk-ca-bundle.1
  29. dist_man_MANS = curl-config.1
  30. GENHTMLPAGES = curl.html curl-config.html mk-ca-bundle.html
  31. PDFPAGES = curl.pdf curl-config.pdf mk-ca-bundle.pdf
  32. MANDISTPAGES = curl.1.dist curl-config.1.dist
  33. HTMLPAGES = $(GENHTMLPAGES)
  34. # Build targets in this file (.) before cmdline-opts to ensure that
  35. # the curl.1 rule below runs first
  36. SUBDIRS = . cmdline-opts
  37. DIST_SUBDIRS = $(SUBDIRS) examples libcurl
  38. CLEANFILES = $(GENHTMLPAGES) $(PDFPAGES) $(MANDISTPAGES) curl.1
  39. EXTRA_DIST = \
  40. $(noinst_man_MANS) \
  41. ALTSVC.md \
  42. BINDINGS.md \
  43. BUFREF.md \
  44. BUG-BOUNTY.md \
  45. BUGS.md \
  46. CHECKSRC.md \
  47. CIPHERS.md \
  48. CMakeLists.txt \
  49. CODE_OF_CONDUCT.md \
  50. CODE_REVIEW.md \
  51. CODE_STYLE.md \
  52. CONNECTION-FILTERS.md \
  53. CONTRIBUTE.md \
  54. CURL-DISABLE.md \
  55. DEPRECATE.md \
  56. DYNBUF.md \
  57. EARLY-RELEASE.md \
  58. EXPERIMENTAL.md \
  59. FAQ \
  60. FEATURES.md \
  61. GOVERNANCE.md \
  62. GPLv3.txt \
  63. HELP-US.md \
  64. HISTORY.md \
  65. HSTS.md \
  66. HTTP-COOKIES.md \
  67. HTTP2.md \
  68. HTTP3.md \
  69. HYPER.md \
  70. INSTALL \
  71. INSTALL.cmake \
  72. INSTALL.md \
  73. INTERNALS.md \
  74. KNOWN_BUGS \
  75. MAIL-ETIQUETTE \
  76. MQTT.md \
  77. NEW-PROTOCOL.md \
  78. options-in-versions \
  79. PARALLEL-TRANSFERS.md \
  80. README.md \
  81. RELEASE-PROCEDURE.md \
  82. RUSTLS.md \
  83. ROADMAP.md \
  84. SECURITY-ADVISORY.md \
  85. SECURITY-PROCESS.md \
  86. SSL-PROBLEMS.md \
  87. SSLCERTS.md \
  88. THANKS \
  89. TINY-CURL.md \
  90. TODO \
  91. TheArtOfHttpScripting.md \
  92. URL-SYNTAX.md \
  93. VERSIONS.md \
  94. WEBSOCKET.md
  95. MAN2HTML= roffit $< >$@
  96. SUFFIXES = .1 .html .pdf
  97. # $(abs_builddir) is to disable VPATH when searching for this file, which
  98. # would otherwise find the copy in $(srcdir) which breaks the $(HUGE)
  99. # rule in src/Makefile.am in out-of-tree builds that references the file in the
  100. # build directory.
  101. #
  102. # First, seed the used copy of curl.1 with the prebuilt copy (in an out-of-tree
  103. # build), then run make recursively to rebuild it only if its dependencies
  104. # have changed.
  105. $(abs_builddir)/curl.1:
  106. if test "$(top_builddir)x" != "$(top_srcdir)x" -a -e "$(srcdir)/curl.1"; then \
  107. $(INSTALL_DATA) "$(srcdir)/curl.1" $@; fi
  108. cd cmdline-opts && $(MAKE)
  109. html: $(HTMLPAGES)
  110. cd libcurl && $(MAKE) html
  111. pdf: $(PDFPAGES)
  112. cd libcurl && $(MAKE) pdf
  113. .1.html:
  114. $(MAN2HTML)
  115. .1.pdf:
  116. @(foo=`echo $@ | sed -e 's/\.[0-9]$$//g'`; \
  117. groff -Tps -man $< >$$foo.ps; \
  118. ps2pdf $$foo.ps $@; \
  119. rm $$foo.ps; \
  120. echo "converted $< to $@")
  121. distclean:
  122. rm -f $(CLEANFILES)