2
0

Makefile.am 2.1 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. MANPAGE = curl.1
  26. ASCIIPAGE = curl.txt
  27. include Makefile.inc
  28. EXTRA_DIST = $(DPAGES) MANPAGE.md $(SUPPORT) CMakeLists.txt mainpage.idx
  29. GEN = $(GN_$(V))
  30. GN_0 = @echo " GENERATE" $@;
  31. GN_1 =
  32. GN_ = $(GN_0)
  33. MANAGEN=$(top_srcdir)/scripts/managen
  34. MAXLINE=$(top_srcdir)/scripts/maxline
  35. # Maximum number of columns accepted in the ASCII version of the manpage
  36. INCDIR=$(top_srcdir)/include
  37. if BUILD_DOCS
  38. CLEANFILES = $(MANPAGE) $(ASCIIPAGE)
  39. man_MANS = $(MANPAGE)
  40. all: $(MANPAGE) $(ASCIIPAGE)
  41. endif
  42. $(MANPAGE): $(DPAGES) $(SUPPORT) mainpage.idx Makefile.inc $(MANAGEN)
  43. $(GEN)(rm -f $(MANPAGE) && @PERL@ $(MANAGEN) -d $(srcdir) -I $(INCDIR) mainpage $(DPAGES) > manpage.tmp.$$$$ && mv manpage.tmp.$$$$ $(MANPAGE))
  44. $(ASCIIPAGE): $(DPAGES) $(SUPPORT) mainpage.idx Makefile.inc $(MANAGEN)
  45. $(GEN)(rm -f $(ASCIIPAGE) && @PERL@ $(MANAGEN) -d $(srcdir) -I $(INCDIR) ascii $(DPAGES) > asciipage.tmp.$$$$ && mv asciipage.tmp.$$$$ $(ASCIIPAGE))
  46. listhelp:
  47. $(MANAGEN) -d $(srcdir) listhelp $(DPAGES) > $(top_builddir)/src/tool_listhelp.c
  48. listcats:
  49. @$(MANAGEN) listcats $(DPAGES)