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
40
41FONTNAMES =		$(FONTFILES:%=%.name)
42FONTLNK1OUTS =		$(FONTLNK1:%=%.out)
43FONTLNK2OUTS =		$(FONTLNK2:%=%.out)
44FONTOUTS =		$(FONTFILES:%=%.out) $(DESCFILE:%=%.out)
45
46SUBDIRS =		charlib fontmaps
47
48NATIVEMAKEDEV =		../native/makedev
49
50ROOTLIBFONT =		$(ROOT)/usr/lib/font
51ROOTDEVPOST =		$(ROOTLIBFONT)/devpost
52
53ROOTFONTFILES =		$(FONTFILES:%=$(ROOTDEVPOST)/%) \
54			$(ROOTDEVPOST)/$(DESCFILE)
55ROOTFONTNAMES =		$(FONTNAMES:%=$(ROOTDEVPOST)/%)
56ROOTFONTOUTS =		$(FONTOUTS:%=$(ROOTDEVPOST)/%)		\
57			$(FONTLNK1OUTS:%=$(ROOTDEVPOST)/%)	\
58			$(FONTLNK2OUTS:%=$(ROOTDEVPOST)/%)
59
60FILEMODE =		0444
61
62.KEEP_STATE:
63
64all :			$(FONTOUTS) $(FONTNAMES) $(SUBDIRS)
65
66install:		$(FONTOUTS) $(FONTNAMES) \
67			$(ROOTDEVPOST) $(ROOTFONTFILES) $(ROOTFONTNAMES) \
68			$(ROOTFONTOUTS) $(SUBDIRS)
69
70$(FONTOUTS) :		$$(@:%.out=%) $(NATIVEMAKEDEV)
71			@$(RM) $@; $(NATIVEMAKEDEV) $(@:%.out=%)
72
73$(ROOTDEVPOST) :
74			$(INS.dir)
75
76$(NATIVEMAKEDEV) :
77			@cd ..; $(MAKE) native/makedev
78
79$(FONTLNK1OUTS) :	H.out
80			@$(RM) $@; $(LN) H.out $@
81
82$(FONTLNK2OUTS) :	HI.out
83			@$(RM) $@; $(LN) HI.out $@
84
85$(ROOTDEVPOST)/% :	% $(ROOTDEVPOST)
86			$(INS.file)
87
88clean strip lint :	$(SUBDIRS)
89
90clobber:		$(SUBDIRS)
91			$(RM) $(FONTOUTS) $(FONTLNK1OUTS) $(FONTLNK2OUTS)
92
93$(SUBDIRS):		FRC
94			@cd $@; pwd; $(MAKE) $(TARGET)
95
96FRC:
97