* doc/Makefile: Added texput.log to the `clean' target.
[s-roff.git] / doc / Makefile
blob8e70de0af98ec58ecf322f250e63a11577edd6fe
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
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 install:
67 clean:
68 -rm -f *.ps *.html *.ascii *.png *.gif *.dit core
69 -rm -f *.aux *.cp *.cps *.cv *.cn *.dvi *.fn *.fns *.ky *.kys \
70 *.log *.op *.pg *.pgs *.ps *.toc *.tp *.tps *.tr *.vr *.vrs \
71 texput.log
73 distclean: clean
75 realclean: distclean
77 extraclean: clean
78 -rm -f core *~ \#* junk temp grot