source: trunk/essentials/sys-apps/gawk/doc/Makefile.am

Last change on this file was 3076, checked in by bird, 18 years ago

gawk 3.1.5

File size: 3.1 KB
Line 
1#
2# doc/Makefile.am --- automake input file for gawk
3#
4# Copyright (C) 2000, 2001, 2002, 2004, 2005 the Free Software Foundation, Inc.
5#
6# This file is part of GAWK, the GNU implementation of the
7# AWK Programming Language.
8#
9# GAWK 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 of the License, or
12# (at your option) any later version.
13#
14# GAWK 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#
19# You should have received a copy of the GNU General Public License
20# along with this program; if not, write to the Free Software
21# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
22#
23
24## process this file with automake to produce Makefile.in
25
26info_TEXINFOS = gawk.texi gawkinet.texi
27
28man_MANS = gawk.1 igawk.1
29
30EXTRA_DIST = ChangeLog README.card ad.block setter.outline \
31 awkcard.in awkforai.txt texinfo.tex cardfonts \
32 macros colors no.colors $(man_MANS) \
33 lflashlight.eps rflashlight.eps \
34 statist.jpg statist.eps
35
36MAKEINFO = @MAKEINFO@ --no-split --force
37
38TROFF = groff -t -Tps -U
39SEDME = sed -e "s/^level0 restore/level0 restore flashme 100 72 moveto (Copyright `date '+%m-%d-%y %T'`, FSF, Inc. (all)) show/" \
40 -e "s/^\/level0 save def/\/level0 save def 30 -48 translate/"
41
42CARDSRC = $(srcdir)/macros $(srcdir)/cardfonts $(srcdir)/colors awkcard.tr
43CARDSRC_N = $(srcdir)/macros $(srcdir)/cardfonts $(srcdir)/no.colors awkcard.tr
44CARDFILES= $(CARDSRC) ad.block awkcard.in setter.outline
45
46# Use this if your troff can correctly handle macros from 'colors' file
47AWKCARD = awkcard.ps
48
49# Uncomment the following definition of AWKCARD if your troff can produce
50# Postscript but still has troubles with macros from 'colors'. As this
51# is not groff you will have to change TROFF macro as well. Do not forget
52# to ensure that awkcard.tr is processed by tbl.
53#AWKCARD = awkcard.nc
54
55# The following is patterned after the main Makefile.am. The point is to
56# make pgawk.1 a link to gawk.1 in the installed man directory.
57
58# We want hard links for install-data-hook, below
59LN= ln
60
61# Link gawk.1 to pgawk.1
62install-data-hook:
63 (cd $(DESTDIR)$(man1dir); \
64 $(LN) gawk.1 pgawk.1 2>/dev/null ; \
65 exit 0)
66
67# Undo the above when uninstalling
68uninstall-hook:
69 cd $(DESTDIR)$(man1dir); rm -f pgawk.1 ; exit 0
70
71postscript: gawk.ps gawkinet.ps gawk.1.ps igawk.1.ps $(AWKCARD)
72
73gawk.ps: gawk.dvi
74 dvips -o gawk.ps gawk.dvi
75
76gawkinet.ps: gawkinet.dvi
77 dvips -o gawkinet.ps gawkinet.dvi
78
79gawk.1.ps: gawk.1
80 -groff -man $(srcdir)/gawk.1 > gawk.1.ps
81
82igawk.1.ps: igawk.1
83 -groff -man $(srcdir)/igawk.1 > igawk.1.ps
84
85awkcard.tr: awkcard.in
86 sed 's:SRCDIR:$(srcdir):' < $(srcdir)/awkcard.in > awkcard.tr
87
88awkcard.ps: $(CARDFILES)
89 $(TROFF) $(CARDSRC) | $(SEDME) | cat $(srcdir)/setter.outline - > awkcard.ps
90
91awkcard.nc: $(CARDFILES)
92 $(TROFF) $(CARDSRC_N) | $(SEDME) | cat $(srcdir)/setter.outline - > awkcard.ps && touch awkcard.nc
93
94clean:
95 rm -f *.ps *~ awkcard.nc awkcard.tr *.html
Note: See TracBrowser for help on using the repository browser.