xref: /386bsd/usr/src/usr.bin/groff/doc/Makefile (revision a2142627)
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.
10#
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.
15#
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, 675 Mass Ave, Cambridge, MA 02139, USA.
19
20FFLAG=-F..
21TROFF=../troff/troff -M../tmac $(FFLAG)
22GROPS=../grops/grops $(FFLAG)
23DOCS=meref.PS meintro.PS
24MEMACROS=../macros/tmac.e
25SOELIM=../soelim/soelim
26
27all: $(DOCS)
28
29.SUFFIXES: .tr .me .PS .dit
30
31.dit.PS:
32	$(GROPS) $< >$@
33
34.me.dit:
35	$(SOELIM) $< \
36	| sed -e "s;@VERSION@;`cat ../VERSION`;" \
37	| $(TROFF) -Tps $(FFLAG) -me  >$@
38
39.tr.dit:
40	$(TROFF) -Tps $< >$@
41
42meref.PS: meref.dit
43meintro.PS: meintro.dit
44
45install:
46
47clean:
48	-rm -f *.PS *.dit core
49
50distclean: clean
51
52realclean: distclean
53
54extraclean: clean
55	-rm -f core *~ \#* junk temp grot
56