1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright (c) 1989 by Sun Microsystems, Inc.
24# Copyright 2014 Garrett D'Amore
25#
26# cmd/lp/filter/postscript/font/devpost/Makefile
27#
28
29include			../../../../Makefile.lp
30
31FONTFILES =		AB AI AR AX BI CB CI CO	\
32			CW CX GR HB HI HX JB JI	\
33			JR JX KB KI KR KX NB NI	\
34			NR NX PA PB PI PX S1 VB	\
35			VI VR VX ZD ZI B  H  I	\
36			R  S
37FONTLNK1 =		G HM HK HL
38FONTLNK2 =		GI
39DESCFILE =		DESC
40TXTS =			DESC.big DESC.small S.big S.small LINKFILE
41
42FONTNAMES =		$(FONTFILES:%=%.name)
43FONTLNK1OUTS =		$(FONTLNK1:%=%.out)
44FONTLNK2OUTS =		$(FONTLNK2:%=%.out)
45FONTOUTS =		$(FONTFILES:%=%.out) $(DESCFILE:%=%.out)
46
47SUBDIRS =		charlib fontmaps
48
49NATIVEMAKEDEV =		../native/makedev
50
51ROOTLIBFONT =		$(ROOT)/usr/lib/font
52ROOTDEVPOST =		$(ROOTLIBFONT)/devpost
53
54ROOTFONTFILES =		$(FONTFILES:%=$(ROOTDEVPOST)/%) \
55			$(ROOTDEVPOST)/$(DESCFILE)
56ROOTFONTNAMES =		$(FONTNAMES:%=$(ROOTDEVPOST)/%)
57ROOTFONTOUTS =		$(FONTOUTS:%=$(ROOTDEVPOST)/%)		\
58			$(FONTLNK1OUTS:%=$(ROOTDEVPOST)/%)	\
59			$(FONTLNK2OUTS:%=$(ROOTDEVPOST)/%)
60
61FILEMODE =		0444
62
63.KEEP_STATE:
64
65all :			$(TXTS) $(FONTOUTS) $(FONTNAMES) $(SUBDIRS)
66
67install:		$(TXTS) $(FONTOUTS) $(FONTNAMES) \
68			$(ROOTDEVPOST) $(ROOTFONTFILES) $(ROOTFONTNAMES) \
69			$(ROOTFONTOUTS) $(SUBDIRS)
70
71$(FONTOUTS) :		$$(@:%.out=%) $(NATIVEMAKEDEV)
72			@$(RM) $@; $(NATIVEMAKEDEV) $(@:%.out=%)
73
74$(ROOTDEVPOST) :
75			$(INS.dir)
76
77$(NATIVEMAKEDEV) :
78			@cd ..; $(MAKE) native/makedev
79
80$(FONTLNK1OUTS) :	H.out
81			@$(RM) $@; $(LN) H.out $@
82
83$(FONTLNK2OUTS) :	HI.out
84			@$(RM) $@; $(LN) HI.out $@
85
86$(ROOTDEVPOST)/% :	% $(ROOTDEVPOST)
87			$(INS.file)
88
89clean strip lint :	$(SUBDIRS)
90
91clobber:		$(SUBDIRS)
92			$(RM) $(FONTOUTS) $(FONTLNK1OUTS) $(FONTLNK2OUTS)
93
94$(SUBDIRS):		FRC
95			@cd $@; pwd; $(MAKE) $(TARGET)
96
97FRC:
98