freebsd-skq/contrib/cvs/doc/Makefile.am

122 lines
3.5 KiB
Makefile
Raw Normal View History

2001-08-10 09:43:22 +00:00
## Process this file with automake to produce Makefile.in
# Makefile for GNU CVS documentation (excluding man pages - see ../man).
2008-01-13 05:49:32 +00:00
#
# Copyright (C) 1986-2005 The Free Software Foundation, Inc.
#
# Portions Copyright (C) 1998-2005 Derek Price, Ximbiot <http://ximbiot.com>,
# and others.
2001-08-10 09:43:22 +00:00
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
info_TEXINFOS = cvs.texinfo cvsclient.texi
2008-01-13 05:49:32 +00:00
man_MANS = $(srcdir)/cvs.1
2001-08-10 09:43:22 +00:00
2004-04-15 01:01:56 +00:00
PSS = \
2001-08-10 09:43:22 +00:00
cvs.ps \
cvs-paper.ps \
cvsclient.ps
PDFS = \
cvs.pdf \
2008-01-13 05:49:32 +00:00
$(srcdir)/cvs-paper.pdf \
2001-08-10 09:43:22 +00:00
cvsclient.pdf
TXTS = \
cvs.txt \
cvsclient.txt
EXTRA_DIST = \
.cvsignore \
ChangeLog.fsf \
RCSFILES \
mdate-sh \
2008-01-13 05:49:32 +00:00
$(srcdir)/cvs.1 \
2004-06-10 19:05:38 +00:00
cvs-paper.ms \
cvs.man.header \
2008-01-13 05:49:32 +00:00
cvs.man.footer \
$(PDFS)
MOSTLYCLEANFILES =
2001-08-10 09:43:22 +00:00
2008-01-13 05:49:32 +00:00
CLEANFILES = \
$(PSS) \
2001-08-10 09:43:22 +00:00
$(TXTS)
MAINTAINERCLEANFILES = \
2008-01-13 05:49:32 +00:00
$(PDFS) \
$(srcdir)/cvs.1
2001-08-10 09:43:22 +00:00
2008-01-13 05:49:32 +00:00
doc: info pdf
2004-04-15 01:01:56 +00:00
.PHONY: doc
2001-08-10 09:43:22 +00:00
txt: $(TXTS)
.PHONY: txt
dvi: cvs.dvi cvsclient.dvi
.PHONY: dvi
# FIXME-AUTOMAKE:
# For some reason if I remove version.texi, it doesn't get built automatically.
# This needs to be fixed in automake.
2004-04-15 01:01:56 +00:00
cvs.txt: cvs.texinfo $(srcdir)/version.texi
cvsclient.txt: cvsclient.texi $(srcdir)/version-client.texi
2001-08-10 09:43:22 +00:00
2008-01-13 05:49:32 +00:00
# The cvs-paper.pdf target needs to be very specific so that the other PDFs get
# generated correctly. If a more generic .ps.pdf implicit target is defined,
# and cvs.ps is made before cvs.pdf, then cvs.pdf can be generated from the
# .ps.pdf target and the PS source, which contains less information (hyperlinks
# and such) than the usual texinfo source.
#
# It is possible that an implicit .ms.ps target could be safely defined. I
# don't recall looking into it.
cvs-paper.ps: cvs-paper.ms
2008-01-13 05:49:32 +00:00
$(ROFF) -t -p -ms -Tps $(srcdir)/cvs-paper.ms >cvs-paper.ps-t
cp cvs-paper.ps-t $@
-@rm -f cvs-paper.ps-t
# This rule introduces some redundancy, but `make distcheck' requires that
# Nothing in $(srcdir) be rebuilt, and this will always be rebuilt when it
# is dependant on cvs-paper.ps and cvs-paper.ps isn't distributed.
$(srcdir)/cvs-paper.pdf: cvs-paper.ms
$(ROFF) -t -p -ms -Tps $(srcdir)/cvs-paper.ms >cvs-paper.ps-t
ps2pdf cvs-paper.ps-t cvs-paper.pdf-t
cp cvs-paper.pdf-t $@
-@rm -f cvs-paper.pdf-t cvs-paper.ps-t
2001-08-10 09:43:22 +00:00
2008-01-13 05:49:32 +00:00
MOSTLYCLEANFILES += cvs-paper.pdf-t cvs-paper.ps-t
2001-08-10 09:43:22 +00:00
2004-06-10 19:05:38 +00:00
# Targets to build a man page from cvs.texinfo.
2008-01-13 05:49:32 +00:00
$(srcdir)/cvs.1: @MAINTAINER_MODE_TRUE@ mkman cvs.man.header cvs.texinfo cvs.man.footer
$(PERL) ./mkman $(srcdir)/cvs.man.header $(srcdir)/cvs.texinfo \
$(srcdir)/cvs.man.footer >cvs.tmp
cp cvs.tmp $(srcdir)/cvs.1
-@rm -f cvs.tmp
2001-08-10 09:43:22 +00:00
# texinfo based targets automake neglects to include
2004-06-10 19:05:38 +00:00
SUFFIXES = .txt
2001-08-10 09:43:22 +00:00
.texinfo.txt:
2004-04-15 01:01:56 +00:00
$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
--no-headers -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
2001-08-10 09:43:22 +00:00
.txi.txt:
2004-04-15 01:01:56 +00:00
$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
--no-headers -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
2001-08-10 09:43:22 +00:00
.texi.txt:
2004-04-15 01:01:56 +00:00
$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
--no-headers -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
2001-08-10 09:43:22 +00:00
##
2001-08-10 09:43:22 +00:00
## MAINTAINER Targets
##
2001-08-10 09:43:22 +00:00
# for backwards compatibility with the old makefiles
realclean: maintainer-clean
.PHONY: realclean