PageRenderTime 7ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/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
  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)
 12# any later version.
 13
 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.
 18
 19info_TEXINFOS = cvs.texinfo cvsclient.texi
 20man_MANS = $(srcdir)/cvs.1
 21
 22PSS = \
 23	cvs.ps \
 24	cvs-paper.ps \
 25	cvsclient.ps
 26
 27PDFS = \
 28	cvs.pdf \
 29	$(srcdir)/cvs-paper.pdf \
 30	cvsclient.pdf
 31
 32TXTS = \
 33	cvs.txt \
 34	cvsclient.txt
 35
 36EXTRA_DIST = \
 37	.cvsignore \
 38	ChangeLog.fsf \
 39	RCSFILES \
 40	mdate-sh \
 41	$(srcdir)/cvs.1 \
 42	cvs-paper.ms \
 43	cvs.man.header \
 44	cvs.man.footer \
 45	$(PDFS)
 46
 47MOSTLYCLEANFILES =
 48
 49CLEANFILES = \
 50	$(PSS) \
 51	$(TXTS)
 52
 53MAINTAINERCLEANFILES = \
 54	$(PDFS) \
 55	$(srcdir)/cvs.1
 56
 57doc: info pdf
 58.PHONY: doc
 59
 60txt: $(TXTS)
 61.PHONY: txt
 62
 63dvi: cvs.dvi cvsclient.dvi
 64.PHONY: dvi
 65
 66# FIXME-AUTOMAKE:
 67# For some reason if I remove version.texi, it doesn't get built automatically.
 68# This needs to be fixed in automake.
 69cvs.txt: cvs.texinfo $(srcdir)/version.texi
 70cvsclient.txt: cvsclient.texi $(srcdir)/version-client.texi
 71
 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.
 77#
 78# It is possible that an implicit .ms.ps target could be safely defined.  I
 79# don't recall looking into it.
 80cvs-paper.ps: cvs-paper.ms
 81	$(ROFF) -t -p -ms -Tps $(srcdir)/cvs-paper.ms >cvs-paper.ps-t
 82	cp cvs-paper.ps-t $@
 83	-@rm -f cvs-paper.ps-t
 84
 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
 91	cp cvs-paper.pdf-t $@
 92	-@rm -f cvs-paper.pdf-t cvs-paper.ps-t
 93
 94MOSTLYCLEANFILES += cvs-paper.pdf-t cvs-paper.ps-t
 95
 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
101	-@rm -f cvs.tmp
102
103# texinfo based targets automake neglects to include
104SUFFIXES = .txt
105.texinfo.txt:
106	$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
107	 --no-headers -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
108.txi.txt:
109	$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
110	 --no-headers -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
111.texi.txt:
112	$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
113	 --no-headers -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
114
115##
116## MAINTAINER Targets
117##
118
119# for backwards compatibility with the old makefiles
120realclean: maintainer-clean
121.PHONY: realclean