1## -*- Makefile -*- 2## Makefile for the doc subdirectory of a2ps 3## Copyright (c) 1995-2000 Akim Demaille, Miguel Santana 4## 5## This program is free software; you can redistribute it and/or modify 6## it under the terms of the GNU General Public License as published by 7## the Free Software Foundation; either version 2, or (at your option) 8## any later version. 9## 10## This program is distributed in the hope that it will be useful, 11## but WITHOUT ANY WARRANTY; without even the implied warranty of 12## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13## GNU General Public License for more details. 14## 15## You should have received a copy of the GNU General Public License 16## along with this program; if not, write to the Free Software 17## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 19## Process this file with automake to produce Makefile.in 20info_TEXINFOS = a2ps.texi regex.texi 21 22TEXI2DVI = $(top_srcdir)/contrib/texi2dvi4a2ps 23TEXI2DVIFLAGS = -b -c -t "@setchapternewpage odd" 24 25# The a2ps of this package 26xa2ps = $(top_builddir)/src/a2ps 27defs = $(top_builddir)/tests/defs 28A2PS = a2ps 29 30generated_texinfos = \ 31encoding.texi prologue.texi sheets.texi translators.texi 32 33MAINTAINERCLEANFILES = $(generated_texinfos) 34 35EXTRA_DIST = $(generated_texinfos) .a2psrc translators.txt \ 36make-authors.pl translators.pl 37 38a2ps.info: a2ps.texi $(generated_texinfos) version.texi 39a2ps.dvi: a2ps.texi $(generated_texinfos) version.texi 40 41# This is really the minimum form of dependency... 42sheets.texi: $(top_srcdir)/sheets/Makefile.am 43 . $(defs) ; LC_ALL= LC_COLLATE=fr \ 44 $(xa2ps) --list=ssh-texi > sheets.texi || rm sheets.texi 45 46encoding.texi: $(top_srcdir)/encoding/Makefile.am 47 . $(defs) ; LC_ALL= LC_COLLATE=fr \ 48 $(xa2ps) --list=edf-texi > encoding.texi || rm encoding.texi 49 50prologue.texi: $(top_srcdir)/ps/Makefile.am 51 . $(defs) ; LC_ALL= LC_COLLATE=fr \ 52 $(xa2ps) --list=pro-texi > prologue.texi || rm prologue.texi 53 54translators.texi: $(srcdir)/translators.txt $(srcdir)/translators.pl 55 $(PERL) translators.pl > $@-t 56 chmod 644 $@-t 57 mv $@-t $@ 58 59# 60# Various other outputs formats 61# 62docs: doc-a4 doc-us book-a4 book-us cover-a4 cover-us 63 64usdvi = $(PACKAGE)-$(VERSION).us.dvi 65a4dvi = $(PACKAGE)-$(VERSION).a4.dvi 66 67$(a4dvi): a2ps.texi 68 $(TEXI2DVI) $(TEXI2DVIFLAGS) -t @afourpaper a2ps.texi 69 mv a2ps.dvi $(a4dvi) 70 71$(usdvi): a2ps.texi 72 $(TEXI2DVI) $(TEXI2DVIFLAGS) a2ps.texi 73 mv a2ps.dvi $(usdvi) 74 75doc-a4: $(a4dvi) 76 $(A2PS) -=make-doc -MA4 $(a4dvi) 77 gzip -c $(a4dvi) > doc-$(a4dvi).gz 78 79doc-us: $(usdvi) 80 $(A2PS) -=make-doc -MLetter $(usdvi) 81 gzip -c $(usdvi) > doc-$(usdvi).gz 82 83book-a4: $(a4dvi) 84 $(A2PS) -=make-book -MA4 $(a4dvi) 85 86book-us: $(usdvi) 87 $(A2PS) -=make-book -MLetter $(usdvi) 88 89cover-a4: $(a4dvi) 90 $(A2PS) -=make-cover -MA4 $(a4dvi) 91 92cover-us: $(usdvi) 93 $(A2PS) -=make-cover -MLetter $(usdvi) 94 95# Note: I use a2html which puts better background and hlines. 96# you can put texi2html without any problems. 97html: a2ps.texi 98 $(MAKEINFO) -E /tmp/a2ps.texi -o /dev/null a2ps.texi 99 a2html -expandinfo -split_chapter -number /tmp/a2ps.texi 100