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 |
|
---|
26 | info_TEXINFOS = gawk.texi gawkinet.texi
|
---|
27 |
|
---|
28 | man_MANS = gawk.1 igawk.1
|
---|
29 |
|
---|
30 | EXTRA_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 |
|
---|
36 | MAKEINFO = @MAKEINFO@ --no-split --force
|
---|
37 |
|
---|
38 | TROFF = groff -t -Tps -U
|
---|
39 | SEDME = 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 |
|
---|
42 | CARDSRC = $(srcdir)/macros $(srcdir)/cardfonts $(srcdir)/colors awkcard.tr
|
---|
43 | CARDSRC_N = $(srcdir)/macros $(srcdir)/cardfonts $(srcdir)/no.colors awkcard.tr
|
---|
44 | CARDFILES= $(CARDSRC) ad.block awkcard.in setter.outline
|
---|
45 |
|
---|
46 | # Use this if your troff can correctly handle macros from 'colors' file
|
---|
47 | AWKCARD = 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
|
---|
59 | LN= ln
|
---|
60 |
|
---|
61 | # Link gawk.1 to pgawk.1
|
---|
62 | install-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
|
---|
68 | uninstall-hook:
|
---|
69 | cd $(DESTDIR)$(man1dir); rm -f pgawk.1 ; exit 0
|
---|
70 |
|
---|
71 | postscript: gawk.ps gawkinet.ps gawk.1.ps igawk.1.ps $(AWKCARD)
|
---|
72 |
|
---|
73 | gawk.ps: gawk.dvi
|
---|
74 | dvips -o gawk.ps gawk.dvi
|
---|
75 |
|
---|
76 | gawkinet.ps: gawkinet.dvi
|
---|
77 | dvips -o gawkinet.ps gawkinet.dvi
|
---|
78 |
|
---|
79 | gawk.1.ps: gawk.1
|
---|
80 | -groff -man $(srcdir)/gawk.1 > gawk.1.ps
|
---|
81 |
|
---|
82 | igawk.1.ps: igawk.1
|
---|
83 | -groff -man $(srcdir)/igawk.1 > igawk.1.ps
|
---|
84 |
|
---|
85 | awkcard.tr: awkcard.in
|
---|
86 | sed 's:SRCDIR:$(srcdir):' < $(srcdir)/awkcard.in > awkcard.tr
|
---|
87 |
|
---|
88 | awkcard.ps: $(CARDFILES)
|
---|
89 | $(TROFF) $(CARDSRC) | $(SEDME) | cat $(srcdir)/setter.outline - > awkcard.ps
|
---|
90 |
|
---|
91 | awkcard.nc: $(CARDFILES)
|
---|
92 | $(TROFF) $(CARDSRC_N) | $(SEDME) | cat $(srcdir)/setter.outline - > awkcard.ps && touch awkcard.nc
|
---|
93 |
|
---|
94 | clean:
|
---|
95 | rm -f *.ps *~ awkcard.nc awkcard.tr *.html
|
---|