Makefile.am 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. #***************************************************************************
  2. # _ _ ____ _
  3. # Project ___| | | | _ \| |
  4. # / __| | | | |_) | |
  5. # | (__| |_| | _ <| |___
  6. # \___|\___/|_| \_\_____|
  7. #
  8. # Copyright (C) 1998 - 2018, 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. SUBDIRS = opts
  24. include Makefile.inc
  25. man_DISTMANS = $(man_MANS:.3=.3.dist)
  26. HTMLPAGES = $(man_MANS:.3=.html)
  27. PDFPAGES = $(man_MANS:.3=.pdf)
  28. m4macrodir = $(datadir)/aclocal
  29. dist_m4macro_DATA = libcurl.m4
  30. CLEANFILES = $(HTMLPAGES) $(PDFPAGES) $(TESTS) $(man_DISTMANS) \
  31. libcurl-symbols.3
  32. EXTRA_DIST = $(man_MANS) ABI symbols-in-versions symbols.pl \
  33. mksymbolsmanpage.pl CMakeLists.txt
  34. MAN2HTML= roffit --mandir=. $< >$@
  35. SUFFIXES = .3 .html
  36. libcurl-symbols.3: $(srcdir)/symbols-in-versions $(srcdir)/mksymbolsmanpage.pl
  37. perl $(srcdir)/mksymbolsmanpage.pl < $(srcdir)/symbols-in-versions > $@
  38. html: $(HTMLPAGES)
  39. cd opts && $(MAKE) html
  40. .3.html:
  41. $(MAN2HTML)
  42. pdf: $(PDFPAGES)
  43. cd opts && $(MAKE) pdf
  44. .3.pdf:
  45. @(foo=`echo $@ | sed -e 's/\.[0-9]$$//g'`; \
  46. groff -Tps -man $< >$$foo.ps; \
  47. ps2pdf $$foo.ps $@; \
  48. rm $$foo.ps; \
  49. echo "converted $< to $@")
  50. # Make sure each option man page is referenced in the main man page
  51. TESTS = check-easy check-multi
  52. LOG_COMPILER = $(PERL)
  53. # The test fails if the log file contains any text
  54. AM_LOG_FLAGS = -p -e 'die "$$_" if ($$_);'
  55. check-easy: $(srcdir)/curl_easy_setopt.3 $(srcdir)/opts/CURLOPT*.3
  56. OPTS="$$(ls $(srcdir)/opts/CURLOPT*.3 | $(SED) -e 's,^.*/,,' -e 's,\.3$$,,')" && \
  57. for opt in $$OPTS; do grep "^\.IP $$opt$$" $(srcdir)/curl_easy_setopt.3 >/dev/null || echo Missing $$opt; done > $@
  58. check-multi: $(srcdir)/curl_multi_setopt.3 $(srcdir)/opts/CURLMOPT*.3
  59. OPTS="$$(ls $(srcdir)/opts/CURLMOPT*.3 | $(SED) -e 's,^.*/,,' -e 's,\.3$$,,')" && \
  60. for opt in $$OPTS; do grep "^\.IP $$opt$$" $(srcdir)/curl_multi_setopt.3 >/dev/null || echo Missing $$opt; done > $@