Makefile.am 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #***************************************************************************
  2. # _ _ ____ _
  3. # Project ___| | | | _ \| |
  4. # / __| | | | |_) | |
  5. # | (__| |_| | _ <| |___
  6. # \___|\___/|_| \_\_____|
  7. #
  8. # Copyright (C) 1998 - 2020, 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. include Makefile.inc
  24. man_DISTMANS = $(man_MANS:.3=.3.dist)
  25. HTMLPAGES = $(man_MANS:.3=.html)
  26. PDFPAGES = $(man_MANS:.3=.pdf)
  27. CLEANFILES = $(HTMLPAGES) $(PDFPAGES) $(man_DISTMANS)
  28. EXTRA_DIST = $(man_MANS) CMakeLists.txt
  29. MAN2HTML= roffit --mandir=. $< >$@
  30. SUFFIXES = .3 .html
  31. html: $(HTMLPAGES)
  32. .3.html:
  33. $(MAN2HTML)
  34. pdf: $(PDFPAGES)
  35. .3.pdf:
  36. @(foo=`echo $@ | sed -e 's/\.[0-9]$$//g'`; \
  37. groff -Tps -man $< >$$foo.ps; \
  38. ps2pdf $$foo.ps $@; \
  39. rm $$foo.ps; \
  40. echo "converted $< to $@")
  41. mancheck:
  42. @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`
  43. rm -f in_temp
  44. @(for a in $(man_MANS); do echo $$a >>in_temp; done)
  45. sort in_temp > in_makefile
  46. ls CURL*.3 > in_directory
  47. -diff -u in_makefile in_directory
  48. rm in_temp in_directory in_makefile