Makefile.am 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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. HELP-US.md \
  63. HISTORY.md \
  64. HSTS.md \
  65. HTTP-COOKIES.md \
  66. HTTP2.md \
  67. HTTP3.md \
  68. HYPER.md \
  69. INSTALL \
  70. INSTALL.cmake \
  71. INSTALL.md \
  72. INTERNALS.md \
  73. KNOWN_BUGS \
  74. MAIL-ETIQUETTE \
  75. MQTT.md \
  76. NEW-PROTOCOL.md \
  77. options-in-versions \
  78. PARALLEL-TRANSFERS.md \
  79. README.md \
  80. RELEASE-PROCEDURE.md \
  81. RUSTLS.md \
  82. ROADMAP.md \
  83. SECURITY-ADVISORY.md \
  84. SECURITY-PROCESS.md \
  85. SSL-PROBLEMS.md \
  86. SSLCERTS.md \
  87. THANKS \
  88. TODO \
  89. TheArtOfHttpScripting.md \
  90. URL-SYNTAX.md \
  91. VERSIONS.md \
  92. WEBSOCKET.md
  93. MAN2HTML= roffit $< >$@
  94. SUFFIXES = .1 .html .pdf
  95. # $(abs_builddir) is to disable VPATH when searching for this file, which
  96. # would otherwise find the copy in $(srcdir) which breaks the $(HUGE)
  97. # rule in src/Makefile.am in out-of-tree builds that references the file in the
  98. # build directory.
  99. #
  100. # First, seed the used copy of curl.1 with the prebuilt copy (in an out-of-tree
  101. # build), then run make recursively to rebuild it only if its dependencies
  102. # have changed.
  103. $(abs_builddir)/curl.1:
  104. if test "$(top_builddir)x" != "$(top_srcdir)x" -a -e "$(srcdir)/curl.1"; then \
  105. $(INSTALL_DATA) "$(srcdir)/curl.1" $@; fi
  106. cd cmdline-opts && $(MAKE)
  107. html: $(HTMLPAGES)
  108. cd libcurl && $(MAKE) html
  109. pdf: $(PDFPAGES)
  110. cd libcurl && $(MAKE) pdf
  111. .1.html:
  112. $(MAN2HTML)
  113. .1.pdf:
  114. @(foo=`echo $@ | sed -e 's/\.[0-9]$$//g'`; \
  115. groff -Tps -man $< >$$foo.ps; \
  116. ps2pdf $$foo.ps $@; \
  117. rm $$foo.ps; \
  118. echo "converted $< to $@")
  119. distclean:
  120. rm -f $(CLEANFILES)