1 ## Process this file with automake to produce Makefile.in
2 # Makefile for GNU CVS documentation (excluding man pages - see ../man).
4 # Copyright (C) 1986-2005 The Free Software Foundation, Inc.
6 # Portions Copyright (C) 1998-2005 Derek Price, Ximbiot <http://ximbiot.com>,
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2, or (at your option)
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 info_TEXINFOS = cvs.texinfo cvsclient.texi
20 man_MANS = $(srcdir)/cvs.1
29 $(srcdir)/cvs-paper.pdf \
53 MAINTAINERCLEANFILES = \
63 dvi: cvs.dvi cvsclient.dvi
67 # For some reason if I remove version.texi, it doesn't get built automatically.
68 # This needs to be fixed in automake.
69 cvs.txt: cvs.texinfo $(srcdir)/version.texi
70 cvsclient.txt: cvsclient.texi $(srcdir)/version-client.texi
72 # The cvs-paper.pdf target needs to be very specific so that the other PDFs get
73 # generated correctly. If a more generic .ps.pdf implicit target is defined,
74 # and cvs.ps is made before cvs.pdf, then cvs.pdf can be generated from the
75 # .ps.pdf target and the PS source, which contains less information (hyperlinks
76 # and such) than the usual texinfo source.
78 # It is possible that an implicit .ms.ps target could be safely defined. I
79 # don't recall looking into it.
80 cvs-paper.ps: cvs-paper.ms
81 $(ROFF) -t -p -ms -Tps $(srcdir)/cvs-paper.ms >cvs-paper.ps-t
83 -@rm -f cvs-paper.ps-t
85 # This rule introduces some redundancy, but `make distcheck' requires that
86 # Nothing in $(srcdir) be rebuilt, and this will always be rebuilt when it
87 # is dependant on cvs-paper.ps and cvs-paper.ps isn't distributed.
88 $(srcdir)/cvs-paper.pdf: cvs-paper.ms
89 $(ROFF) -t -p -ms -Tps $(srcdir)/cvs-paper.ms >cvs-paper.ps-t
90 ps2pdf cvs-paper.ps-t cvs-paper.pdf-t
92 -@rm -f cvs-paper.pdf-t cvs-paper.ps-t
94 MOSTLYCLEANFILES += cvs-paper.pdf-t cvs-paper.ps-t
96 # Targets to build a man page from cvs.texinfo.
97 $(srcdir)/cvs.1: @MAINTAINER_MODE_TRUE@ mkman cvs.man.header cvs.texinfo cvs.man.footer
98 $(PERL) ./mkman $(srcdir)/cvs.man.header $(srcdir)/cvs.texinfo \
99 $(srcdir)/cvs.man.footer >cvs.tmp
100 cp cvs.tmp $(srcdir)/cvs.1
103 # texinfo based targets automake neglects to include
106 $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
107 --no-headers -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
109 $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
110 --no-headers -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
112 $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
113 --no-headers -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
116 ## MAINTAINER Targets
119 # for backwards compatibility with the old makefiles
120 realclean: maintainer-clean