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
20# This is set up so you can do:
21#   make -f generate/Makefile
22# in the parent directory of the directory containing this file.
23
24srcdir=.
25tfmdir=/usr/local/lib/groff-tfm
26gfdir=/usr/local/lib/groff-gf
27
28TFMTODIT=tfmtodit
29FONTS=R I B BI CW MI S EX H HI HB SA SB
30SPECIALFLAG=-s
31
32all: $(FONTS)
33
34# R is special because it contains \(pl \(eq
35
36R: $(srcdir)/texr.map
37	$(TFMTODIT) $(SPECIALFLAG) -g $(gfdir)/cmr10.300gf \
38	  $(tfmdir)/cmr10.tfm $(srcdir)/texr.map $@
39
40# I is special because it contains \(Po
41
42I: $(srcdir)/texi.map
43	$(TFMTODIT) $(SPECIALFLAG) -g $(gfdir)/cmti10.300gf \
44	  $(tfmdir)/cmti10.tfm $(srcdir)/texi.map $@
45
46B: $(srcdir)/texb.map
47	$(TFMTODIT) -g $(gfdir)/cmbx10.300gf \
48	  $(tfmdir)/cmbx10.tfm $(srcdir)/texb.map $@
49
50BI: $(srcdir)/texi.map
51	$(TFMTODIT) -g $(gfdir)/cmbxti10.300gf \
52	  $(tfmdir)/cmbxti10.tfm $(srcdir)/texi.map $@
53
54# CW is special because it contains "
55
56CW: $(srcdir)/textt.map
57	$(TFMTODIT) $(SPECIALFLAG) $(tfmdir)/cmtt10.tfm $(srcdir)/textt.map $@
58
59MI: $(srcdir)/texmi.map
60	$(TFMTODIT) $(SPECIALFLAG) -k 0177 $(tfmdir)/cmmi10.tfm $(srcdir)/texmi.map $@
61
62S: $(srcdir)/texsy.map
63	$(TFMTODIT) $(SPECIALFLAG) -k 060 $(tfmdir)/cmsy10.tfm $(srcdir)/texsy.map $@
64
65EX: $(srcdir)/texex.map
66	$(TFMTODIT) $(SPECIALFLAG) $(tfmdir)/cmex10.tfm $(srcdir)/texex.map $@
67
68H: $(srcdir)/texr.map
69	$(TFMTODIT) -g $(gfdir)/cmss10.300gf $(tfmdir)/cmss10.tfm $(srcdir)/texb.map $@
70
71HB: $(srcdir)/texr.map
72	$(TFMTODIT) -g $(gfdir)/cmssbx10.300gf \
73	  $(tfmdir)/cmssbx10.tfm $(srcdir)/texb.map $@
74
75HI: $(srcdir)/texr.map
76	$(TFMTODIT) -g $(gfdir)/cmssi10.300gf \
77	  $(tfmdir)/cmssi10.tfm $(srcdir)/texb.map $@
78
79SA: $(srcdir)/msam.map
80	$(TFMTODIT) $(SPECIALFLAG) $(tfmdir)/msam10.tfm $(srcdir)/msam.map $@
81
82SB: $(srcdir)/msbm.map
83	$(TFMTODIT) $(SPECIALFLAG) $(tfmdir)/msbm10.tfm $(srcdir)/msbm.map $@
84
85clean:
86
87realclean:
88	-rm -f $(FONTS)
89
90extraclean: realclean
91	-rm -f core *~ \#*
92
93.PHONY: clean realclean extraclean all
94