1#	@(#)Makefile	1.3 (Berkeley) 03/31/88
2# lib/ditroff.font/Makefile
3#
4# Copyright (c) 1984 Adobe Systems Incorporated. All Rights Reserved.
5# PostScript is a trademark of Adobe Systems Incorporated.
6# RCSID: $Header: Makefile,v 2.1 85/11/24 12:24:55 shore Rel $
7
8# see README for more information
9# makedev is the ditroff program that builds device descriptions
10
11# Berkeley changes:
12# 17 February, 1987.  Edward Wang (edward@arpa)
13#	added stipple fonts and avoid forking new makes.
14
15LOADFONTS = R I B BI H HB C CB S SS
16LOADF = R.aux I.aux B.aux BI.aux H.aux HB.aux C.aux CB.aux S.aux SS.aux
17MOREFONTS = HO HD CO CD A AO AB AD \
18	K KI KB KD NB ND NI NR \
19	PB PD PI PR V VB VD VO ZC ZD
20MOREF = HO.aux HD.aux CO.aux CD.aux A.aux AO.aux AB.aux AD.aux \
21	K.aux KI.aux KB.aux KD.aux NB.aux ND.aux NI.aux NR.aux \
22	PB.aux PD.aux PI.aux PR.aux V.aux VB.aux VD.aux VO.aux ZC.aux ZD.aux
23MOREOUT = HO.out HD.out CO.out CD.out A.out AO.out AB.out AD.out \
24	K.out KI.out KB.out KD.out NB.out ND.out NI.out NR.out \
25	PB.out PD.out PI.out PR.out V.out VB.out VD.out VO.out ZC.out ZD.out
26STIPPLES = cf ug mg
27ALLFONTS = $(LOADF) $(MOREF)
28
29.SUFFIXES: .out .aux .map
30
31# how to make a .aux (and the file with the same name with no extension)
32# from a .map (this is input to makedev)
33
34.map.aux:
35	./afmdit $* ..
36
37.aux.out:
38	$$MAKEDEV $*
39
40# how to make a .out (and a .aux) from a .map
41# just do the above two steps
42
43.map.out:
44	./afmdit $* ..
45	$$MAKEDEV $*
46
47all: makedev DESC.out moreout
48
49programs:
50
51install: all
52	rm -rf $$DITDIR/devpsc
53	mkdir $$DITDIR/devpsc
54	-chmod 755 $$DITDIR/devpsc
55	-chown $$OWNER.$$GROUP $$DITDIR/devpsc
56	install -c -m 644 -o $$OWNER -g $$GROUP *.aux *.map *.out DESC \
57		$$DITDIR/devpsc
58	cd $$DITDIR/devpsc; ln C.map CW.map; ln C.out CW.out; ln C.aux CW.aux
59
60makedev:
61	test -r $$MAKEDEV
62	-chmod +x afmdit
63
64DESC.out: DESC $(LOADF)
65	$$MAKEDEV DESC
66
67moreout: $(MOREOUT)
68
69allfonts: $(ALLFONTS)
70
71$(ALLFONTS): afmdit.awk
72
73DESC: afmdit.awk Makefile charset devspecs
74	rm -f DESC
75	echo "# ditroff device description for PostScript" >> DESC
76	echo "# PostScript is a trademark of Adobe Systems Incorporated">>DESC
77	echo fonts `echo $(LOADFONTS) | wc -w` $(LOADFONTS) >> DESC
78	echo stipples `echo $(STIPPLES) | wc -w` $(STIPPLES) >> DESC
79	cat devspecs >> DESC
80	echo "charset" >> DESC
81	sed -e "/^#/d" charset >> DESC
82
83clean:
84	rm -f $(LOADFONTS) $(MOREFONTS) core DESC *.out *.aux temp.* \
85		*.CKP *.BAK
86
87