Makefile.am 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. include Makefile.inc
  26. man_DISTMANS = $(man_MANS:.3=.3.dist)
  27. HTMLPAGES = $(man_MANS:.3=.html)
  28. PDFPAGES = $(man_MANS:.3=.pdf)
  29. CLEANFILES = $(HTMLPAGES) $(PDFPAGES) $(man_DISTMANS)
  30. EXTRA_DIST = $(man_MANS) CMakeLists.txt
  31. MAN2HTML= roffit --mandir=. $< >$@
  32. SUFFIXES = .3 .html
  33. html: $(HTMLPAGES)
  34. .3.html:
  35. $(MAN2HTML)
  36. pdf: $(PDFPAGES)
  37. .3.pdf:
  38. @(foo=`echo $@ | sed -e 's/\.[0-9]$$//g'`; \
  39. groff -Tps -man $< >$$foo.ps; \
  40. ps2pdf $$foo.ps $@; \
  41. rm $$foo.ps; \
  42. echo "converted $< to $@")
  43. mancheck:
  44. @cd $(top_srcdir)/docs/libcurl/opts && ls `awk -F, '!/OBSOLETE/ && /^ CINIT/ { a=substr($$1, 9); print "CURLOPT_" a ".3"}' $(top_srcdir)/include/curl/curl.h`
  45. rm -f in_temp
  46. @(for a in $(man_MANS); do echo $$a >>in_temp; done)
  47. sort in_temp > in_makefile
  48. ls CURL*.3 > in_directory
  49. -diff -u in_makefile in_directory
  50. rm in_temp in_directory in_makefile