groff before CVS: release 1.11
[s-roff.git] / doc / Makefile
blob4c56aa382e1afa18b478a465584026423c497395
1 #Copyright (C) 1989, 1990, 1991, 1992 Free Software Foundation, Inc.
2 # Written by James Clark (jjc@jclark.com)
4 #This file is part of groff.
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..
21 TROFF=../troff/troff -M../tmac $(FFLAG)
22 GROPS=../grops/grops $(FFLAG)
23 DOCS=meref.PS meintro.PS pic.PS
24 MEMACROS=../macros/tmac.e
25 SOELIM=../soelim/soelim
27 all: $(DOCS)
29 .SUFFIXES: .tr .me .ms .PS .dit
31 .dit.PS:
32 $(GROPS) $< >$@
34 .me.dit:
35 $(SOELIM) $< \
36 | sed -e "s;@VERSION@;`cat ../VERSION`;" \
37 | $(TROFF) -Tps $(FFLAG) -me >$@
39 .tr.dit:
40 $(TROFF) -Tps $< >$@
42 meref.PS: meref.dit
43 meintro.PS: meintro.dit
45 # This production must use -p -e -t so pic/eqn processing is done
46 pic.PS: pic.ms
47 sed $< -e "s;@VERSION@;`cat ../VERSION`;" \
48 | ../groff/groff -p -e -t -Tps $(FFLAG) -ms >$@
50 install:
52 clean:
53 -rm -f *.PS *.dit core
55 distclean: clean
57 realclean: distclean
59 extraclean: clean
60 -rm -f core *~ \#* junk temp grot