* doc/Makefile (clean): Include more index files.
[s-roff.git] / doc / Makefile
blob655bc5bf48f03dbdcf62565e3cf48a30dd78719e
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/roff/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 .html .ascii .texinfo .dvi
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 .ms.html:
48 GROFF_TMAC_PATH=../tmac; \
49 export GROFF_TMAC_PATH; \
50 sed -e "s;@VERSION@;$(version)$(revision);" $< \
51 | $(GROFF) -Thtml $(FFLAG) -U -ms >$@
53 .ms.ascii:
54 GROFF_TMAC_PATH=../tmac; \
55 export GROFF_TMAC_PATH; \
56 sed -e "s;@VERSION@;$(version)$(revision);" $< \
57 | $(GROFF) -Tascii $(FFLAG) -U -ms -markup >$@
59 .ms.ps:
60 GROFF_TMAC_PATH=../tmac; \
61 export GROFF_TMAC_PATH; \
62 sed -e "s;@VERSION@;$(version)$(revision);" $< \
63 | $(GROFF) -Tps $(FFLAG) -U -ms -markup >$@
65 .texinfo.dvi:
66 texi2dvi -e $<
68 install:
70 clean:
71 -rm -f *.ps *.html *.ascii *.png *.gif *.dit core
72 -rm -f *.aux *.dvi *.log *.toc texput.log
73 -rm -f *.cp *.cps *.cv *.cn *.fn *.fns *.gl *.gls *.ky *.kys \
74 *.ma *.mas *.op *.ops *.pg *.pgs *.tp *.tps *.tr *.vr *.vrs
76 distclean: clean
78 realclean: distclean
80 extraclean: clean
81 -rm -f core *~ \#* junk temp grot