Makefile.am 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. INCDIR=$(top_srcdir)/include
  35. if BUILD_DOCS
  36. CLEANFILES = $(MANPAGE) $(ASCIIPAGE)
  37. man_MANS = $(MANPAGE)
  38. all: $(MANPAGE) $(ASCIIPAGE)
  39. endif
  40. $(MANPAGE): $(DPAGES) $(SUPPORT) mainpage.idx Makefile.inc $(MANAGEN)
  41. $(GEN)(rm -f $(MANPAGE) && @PERL@ $(MANAGEN) -d $(srcdir) -I $(INCDIR) mainpage $(DPAGES) > manpage.tmp.$$$$ && mv manpage.tmp.$$$$ $(MANPAGE))
  42. $(ASCIIPAGE): $(DPAGES) $(SUPPORT) mainpage.idx Makefile.inc $(MANAGEN)
  43. $(GEN)(rm -f $(ASCIIPAGE) && @PERL@ $(MANAGEN) -d $(srcdir) -I $(INCDIR) ascii $(DPAGES) > asciipage.tmp.$$$$ && mv asciipage.tmp.$$$$ $(ASCIIPAGE))
  44. listhelp:
  45. $(MANAGEN) listhelp $(DPAGES) > $(top_builddir)/src/tool_listhelp.c
  46. listcats:
  47. @$(MANAGEN) listcats $(DPAGES)