/contrib/cvs/doc/Makefile.am

https://bitbucket.org/freebsd/freebsd-head/ · Makefile · 121 lines · 65 code · 21 blank · 35 comment · 3 complexity · 5e905641780a29da133eb8a65c081ed2 MD5 · raw file

  1. ## Process this file with automake to produce Makefile.in
  2. # Makefile for GNU CVS documentation (excluding man pages - see ../man).
  3. #
  4. # Copyright (C) 1986-2005 The Free Software Foundation, Inc.
  5. #
  6. # Portions Copyright (C) 1998-2005 Derek Price, Ximbiot <http://ximbiot.com>,
  7. # and others.
  8. # This program is free software; you can redistribute it and/or modify
  9. # it under the terms of the GNU General Public License as published by
  10. # the Free Software Foundation; either version 2, or (at your option)
  11. # any later version.
  12. # This program is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU General Public License for more details.
  16. info_TEXINFOS = cvs.texinfo cvsclient.texi
  17. man_MANS = $(srcdir)/cvs.1
  18. PSS = \
  19. cvs.ps \
  20. cvs-paper.ps \
  21. cvsclient.ps
  22. PDFS = \
  23. cvs.pdf \
  24. $(srcdir)/cvs-paper.pdf \
  25. cvsclient.pdf
  26. TXTS = \
  27. cvs.txt \
  28. cvsclient.txt
  29. EXTRA_DIST = \
  30. .cvsignore \
  31. ChangeLog.fsf \
  32. RCSFILES \
  33. mdate-sh \
  34. $(srcdir)/cvs.1 \
  35. cvs-paper.ms \
  36. cvs.man.header \
  37. cvs.man.footer \
  38. $(PDFS)
  39. MOSTLYCLEANFILES =
  40. CLEANFILES = \
  41. $(PSS) \
  42. $(TXTS)
  43. MAINTAINERCLEANFILES = \
  44. $(PDFS) \
  45. $(srcdir)/cvs.1
  46. doc: info pdf
  47. .PHONY: doc
  48. txt: $(TXTS)
  49. .PHONY: txt
  50. dvi: cvs.dvi cvsclient.dvi
  51. .PHONY: dvi
  52. # FIXME-AUTOMAKE:
  53. # For some reason if I remove version.texi, it doesn't get built automatically.
  54. # This needs to be fixed in automake.
  55. cvs.txt: cvs.texinfo $(srcdir)/version.texi
  56. cvsclient.txt: cvsclient.texi $(srcdir)/version-client.texi
  57. # The cvs-paper.pdf target needs to be very specific so that the other PDFs get
  58. # generated correctly. If a more generic .ps.pdf implicit target is defined,
  59. # and cvs.ps is made before cvs.pdf, then cvs.pdf can be generated from the
  60. # .ps.pdf target and the PS source, which contains less information (hyperlinks
  61. # and such) than the usual texinfo source.
  62. #
  63. # It is possible that an implicit .ms.ps target could be safely defined. I
  64. # don't recall looking into it.
  65. cvs-paper.ps: cvs-paper.ms
  66. $(ROFF) -t -p -ms -Tps $(srcdir)/cvs-paper.ms >cvs-paper.ps-t
  67. cp cvs-paper.ps-t $@
  68. -@rm -f cvs-paper.ps-t
  69. # This rule introduces some redundancy, but `make distcheck' requires that
  70. # Nothing in $(srcdir) be rebuilt, and this will always be rebuilt when it
  71. # is dependant on cvs-paper.ps and cvs-paper.ps isn't distributed.
  72. $(srcdir)/cvs-paper.pdf: cvs-paper.ms
  73. $(ROFF) -t -p -ms -Tps $(srcdir)/cvs-paper.ms >cvs-paper.ps-t
  74. ps2pdf cvs-paper.ps-t cvs-paper.pdf-t
  75. cp cvs-paper.pdf-t $@
  76. -@rm -f cvs-paper.pdf-t cvs-paper.ps-t
  77. MOSTLYCLEANFILES += cvs-paper.pdf-t cvs-paper.ps-t
  78. # Targets to build a man page from cvs.texinfo.
  79. $(srcdir)/cvs.1: @MAINTAINER_MODE_TRUE@ mkman cvs.man.header cvs.texinfo cvs.man.footer
  80. $(PERL) ./mkman $(srcdir)/cvs.man.header $(srcdir)/cvs.texinfo \
  81. $(srcdir)/cvs.man.footer >cvs.tmp
  82. cp cvs.tmp $(srcdir)/cvs.1
  83. -@rm -f cvs.tmp
  84. # texinfo based targets automake neglects to include
  85. SUFFIXES = .txt
  86. .texinfo.txt:
  87. $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
  88. --no-headers -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
  89. .txi.txt:
  90. $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
  91. --no-headers -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
  92. .texi.txt:
  93. $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
  94. --no-headers -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
  95. ##
  96. ## MAINTAINER Targets
  97. ##
  98. # for backwards compatibility with the old makefiles
  99. realclean: maintainer-clean
  100. .PHONY: realclean