]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/cvs/doc/Makefile.am
This commit was generated by cvs2svn to compensate for changes in r174531,
[FreeBSD/FreeBSD.git] / contrib / cvs / doc / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 # Makefile for GNU CVS documentation (excluding man pages - see ../man).
3 # Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
4 #               1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
5 #               Free Software Foundation, Inc.
6
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
10 # any later version.
11
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
17 info_TEXINFOS = cvs.texinfo cvsclient.texi
18 man_MANS = cvs.1
19
20 PSS = \
21         cvs.ps \
22         cvs-paper.ps \
23         cvsclient.ps
24
25 PDFS = \
26         cvs.pdf \
27         cvs-paper.pdf \
28         cvsclient.pdf
29
30 TXTS = \
31         cvs.txt \
32         cvsclient.txt
33
34 EXTRA_DIST = \
35         $(PSS) \
36         .cvsignore \
37         ChangeLog.fsf \
38         RCSFILES \
39         mdate-sh \
40         cvs.1 \
41         cvs-paper.ms \
42         cvs.man.header \
43         cvs.man.footer
44
45 MOSTLYCLEANFILES = \
46         $(TXTS)
47
48 # These Automake generates MOSTLYCLEAN targets for PostScripts genersted from
49 # TEXINFOS, but it shouldn't when those files are in EXTRA_DIST
50 MAINTAINERCLEANFILES = \
51         $(PSS)
52
53 doc: info ps
54 .PHONY: doc
55
56 txt: $(TXTS)
57 .PHONY: txt
58
59 dvi: cvs.dvi cvsclient.dvi
60 .PHONY: dvi
61
62 # FIXME-AUTOMAKE:
63 # For some reason if I remove version.texi, it doesn't get built automatically.
64 # This needs to be fixed in automake.
65 cvs.txt: cvs.texinfo $(srcdir)/version.texi
66 cvsclient.txt: cvsclient.texi $(srcdir)/version-client.texi
67
68 # These targets need to be very specific so that the other PDFs get generated
69 # correctly.  If they are more generic and cvs.ps is made before cvs.pdf, then
70 # cvs.pdf will be generated from the generic target and the PS source, which
71 # contains less information (hyperlinks and such) than the usual texinfo source.
72 cvs-paper.ps: cvs-paper.ms
73         $(ROFF) -t -p -ms -Tps $< > $@-t
74         mv $@-t $@
75
76 cvs-paper.pdf: cvs-paper.ps
77         ps2pdf $< $@
78
79 # Targets to build a man page from cvs.texinfo.
80 cvs.1: @MAINTAINER_MODE_TRUE@ mkman cvs.man.header cvs.texinfo cvs.man.footer
81         ./mkman $(srcdir)/cvs.man.header $(srcdir)/cvs.texinfo \
82                 $(srcdir)/cvs.man.footer >$@
83
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 ##
97 ## MAINTAINER Targets
98 ##
99
100 # for backwards compatibility with the old makefiles
101 realclean: maintainer-clean
102 .PHONY: realclean