* doc/groff.texinfo: Further checking/updating. Adding more index entries.
[s-roff.git] / doc / Makefile
blobb82ff180e1bbf1d4849b5b08000b87bdc94da60a
1 # Copyright (C) 1989, 1990, 1991, 1992 Free Software Foundation, Inc.
2 # Written by James Clark (jjc@jclark.com)
3 #
4 # This file is part of groff.
5 #
6 # groff is free software; you can redistribute it and/or modify it under
7 # the terms of the GNU General Public License as published by the Free
8 # Software Foundation; either version 2, or (at your option) any later
9 # version.
11 # groff is distributed in the hope that it will be useful, but WITHOUT ANY
12 # WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # for more details.
16 # You should have received a copy of the GNU General Public License along
17 # with groff; see the file COPYING. If not, write to the Free Software
18 # Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 FFLAG=-F../font
21 TROFF=../src/roff/troff/troff -M../tmac $(FFLAG)
22 GROFF=../src/rof/groff/groff -p -e -t
23 GROPS=../src/devices/grops/grops $(FFLAG)
24 DOCS=meref.ps meintro.ps pic.ps pic.html homepage.html
25 MEMACROS=../tmac/tmac.e
26 SOELIM=../src/preproc/soelim/soelim
28 version=`cat ../VERSION`
29 # No additional number for the groff archive if revision is zero
30 revision=`sed -e 's/^0$$//' -e 's/^[1-9].*$$/.&/' ../REVISION`
32 all: $(DOCS)
34 .SUFFIXES: .tr .me .ms .ps .dit
36 .dit.ps:
37 $(GROPS) $< >$@
39 .me.dit:
40 $(SOELIM) $< \
41 | sed -e "s;@VERSION@;$(version)$(revision);" \
42 | $(TROFF) -Tps $(FFLAG) -me >$@
44 .tr.dit:
45 $(TROFF) -Tps $< >$@
47 %.html: %.ms
48 export GROFF_TMAC_PATH=../tmac ; \
49 sed -e "s;@VERSION@;$(version)$(revision);" $< \
50 | $(GROFF) -Thtml $(FFLAG) -U -ms >$@
52 %.ascii: %.ms
53 export GROFF_TMAC_PATH=../tmac ; \
54 sed -e "s;@VERSION@;$(version)$(revision);" $< \
55 | $(GROFF) -Tascii $(FFLAG) -U -ms -markup >$@
57 %.ps: %.ms
58 export GROFF_TMAC_PATH=../tmac ; \
59 sed -e "s;@VERSION@;$(version)$(revision);" $< \
60 | $(GROFF) -Tps $(FFLAG) -U -ms -markup >$@
62 meref.ps: meref.dit
63 meintro.ps: meintro.dit
65 # This production must use -p -e -t so pic/eqn processing is done
66 pic.ps: pic.ms
67 export GROFF_TMAC_PATH=../tmac ; \
68 sed -e "s;@VERSION@;$(version)$(revision);" $< \
69 | $(GROFF) -Tps $(FFLAG) -ms >$@
71 install:
73 clean:
74 -rm -f *.ps *.html *.ascii *.png *.gif *.dit core
75 -rm -f *.aux *.cp *.cps *.cv *.cn *.dvi *.fn *.fns *.ky *.kys \
76 *.log *.op *.pg *.pgs *.ps *.toc *.tp *.tps *.tr *.vr *.vrs
78 distclean: clean
80 realclean: distclean
82 extraclean: clean
83 -rm -f core *~ \#* junk temp grot