xref: /illumos-gate/usr/src/cmd/loadkeys/type_4/Makefile (revision dbed73cbda2229fd1aa6dc5743993cae7f0a7ee9)
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# ident	"%Z%%M%	%I%	%E% SMI"
24#
25# Copyright (c) 1991, by Sun Microsystems, Inc.
26#
27# cmd/loadkeys/type_4/Makefile
28
29KEYTABLES = \
30	us belgium_france germany swiss_german swiss_french uk \
31	canada denmark italy netherlands norway portugal spain_latin_america \
32	sweden_finland japan korea taiwan us101a_pc \
33	reset germany_5 norway_5 sweden_5 uk_5 italy_5 \
34	portugal_5 swiss_french_5 us_5 denmark_5 netherlands_5 spain_5 \
35	swiss_german_5 france_5 japan_5 korea_5 taiwan_5 canadian_french_5 \
36	hungary_5 poland_5 czech_5 russia_5 canadian_french_5_tbits5 \
37	germany_hobo norway_hobo sweden_hobo uk_hobo italy_hobo \
38	portugal_hobo swiss_french_hobo us_hobo denmark_hobo netherlands_hobo \
39	spain_hobo swiss_german_hobo france_hobo japan_hobo korea_hobo \
40	taiwan_hobo canadian_french_hobo
41
42include ../../Makefile.cmd
43
44ROOTKEYDIR= $(ROOTSHLIB)/keytables/type_4
45ROOTKEYTABLES= $(KEYTABLES:%=$(ROOTKEYDIR)/%)
46
47# there is an install target for each ROOT layout link
48#
49LAYOUTS= \
50	layout_00 layout_01 layout_02 layout_03 layout_04 layout_05 \
51	layout_06 layout_07 layout_08 layout_09 layout_0a layout_0b \
52	layout_0c layout_0d layout_0e layout_10 layout_11 layout_13 \
53	layout_20 layout_21 layout_22 layout_23 layout_24 layout_25 \
54	layout_26 layout_27 layout_28 layout_29 layout_2a layout_2b \
55	layout_2c layout_2d layout_2e layout_2f layout_30 layout_31 \
56	layout_32 layout_33 layout_34 layout_35 layout_36 layout_3f \
57	layout_50 layout_51 layout_52 layout_53 layout_54 \
58	layout_55 layout_56 layout_57 layout_58 layout_59 layout_5a \
59	layout_5b layout_5c layout_5d layout_5e \
60	layout_5f layout_60 layout_61
61
62ROOTLINKS= $(LAYOUTS:%=$(ROOTKEYDIR)/%)
63
64$(ROOTKEYTABLES) := FILEMODE = 444
65
66# install rule
67$(ROOTKEYDIR)/%: %
68	$(INS.file)
69
70COMPATKEYDIR= $(ROOTSHLIB)/keytables
71
72COMPATLINKS= $(LAYOUTS:%=$(COMPATKEYDIR)/%) $(KEYTABLES:%=$(COMPATKEYDIR)/%)
73
74$(COMPATKEYDIR)/%: $(ROOTKEYDIR)/%
75	$(RM) $@; ln $< $@
76
77.KEEP_STATE:
78
79all:  $(KEYTABLES)
80
81install: all $(COMPATKEYDIR) $(ROOTKEYDIR) $(ROOTKEYTABLES) $(ROOTLINKS) $(COMPATLINKS)
82
83clean:
84
85$(COMPATKEYDIR):
86	$(INS.dir)
87
88$(ROOTKEYDIR): $(COMPATKEYDIR)
89	$(INS.dir)
90
91# install targets for ROOT layout links
92#
93$(ROOTKEYDIR)/layout_00: $(ROOTKEYDIR)/us
94	$(RM) $@; $(LN) $(ROOTKEYDIR)/us $@
95
96$(ROOTKEYDIR)/layout_01: $(ROOTKEYDIR)/us
97	$(RM) $@; $(LN) $(ROOTKEYDIR)/us $@
98
99$(ROOTKEYDIR)/layout_02: $(ROOTKEYDIR)/belgium_france
100	$(RM) $@; $(LN) $(ROOTKEYDIR)/belgium_france $@
101
102$(ROOTKEYDIR)/layout_03: $(ROOTKEYDIR)/canada
103	$(RM) $@; $(LN) $(ROOTKEYDIR)/canada $@
104
105$(ROOTKEYDIR)/layout_04: $(ROOTKEYDIR)/denmark
106	$(RM) $@; $(LN) $(ROOTKEYDIR)/denmark $@
107
108$(ROOTKEYDIR)/layout_05: $(ROOTKEYDIR)/germany
109	$(RM) $@; $(LN) $(ROOTKEYDIR)/germany $@
110
111$(ROOTKEYDIR)/layout_06: $(ROOTKEYDIR)/italy
112	$(RM) $@; $(LN) $(ROOTKEYDIR)/italy $@
113
114$(ROOTKEYDIR)/layout_07: $(ROOTKEYDIR)/netherlands
115	$(RM) $@; $(LN) $(ROOTKEYDIR)/netherlands $@
116
117$(ROOTKEYDIR)/layout_08: $(ROOTKEYDIR)/norway
118	$(RM) $@; $(LN) $(ROOTKEYDIR)/norway $@
119
120$(ROOTKEYDIR)/layout_09: $(ROOTKEYDIR)/portugal
121	$(RM) $@; $(LN) $(ROOTKEYDIR)/portugal $@
122
123$(ROOTKEYDIR)/layout_0a: $(ROOTKEYDIR)/spain_latin_america
124	$(RM) $@; $(LN) $(ROOTKEYDIR)/spain_latin_america $@
125
126$(ROOTKEYDIR)/layout_0b: $(ROOTKEYDIR)/sweden_finland
127	$(RM) $@; $(LN) $(ROOTKEYDIR)/sweden_finland $@
128
129$(ROOTKEYDIR)/layout_0c: $(ROOTKEYDIR)/swiss_french
130	$(RM) $@; $(LN) $(ROOTKEYDIR)/swiss_french $@
131
132$(ROOTKEYDIR)/layout_0d: $(ROOTKEYDIR)/swiss_german
133	$(RM) $@; $(LN) $(ROOTKEYDIR)/swiss_german $@
134
135$(ROOTKEYDIR)/layout_0e: $(ROOTKEYDIR)/uk
136	$(RM) $@; $(LN) $(ROOTKEYDIR)/uk $@
137
138$(ROOTKEYDIR)/layout_10: $(ROOTKEYDIR)/korea
139	$(RM) $@; $(LN) $(ROOTKEYDIR)/korea $@
140
141$(ROOTKEYDIR)/layout_11: $(ROOTKEYDIR)/taiwan
142	$(RM) $@; $(LN) $(ROOTKEYDIR)/taiwan $@
143
144$(ROOTKEYDIR)/layout_13: $(ROOTKEYDIR)/us101a_pc
145	$(RM) $@; $(LN) $(ROOTKEYDIR)/us101a_pc $@
146
147$(ROOTKEYDIR)/layout_20: $(ROOTKEYDIR)/japan
148	$(RM) $@; $(LN) $(ROOTKEYDIR)/japan $@
149
150$(ROOTKEYDIR)/layout_21: $(ROOTKEYDIR)/us_5
151	$(RM) $@; $(LN) $(ROOTKEYDIR)/us_5 $@
152
153$(ROOTKEYDIR)/layout_22: $(ROOTKEYDIR)/us_5
154	$(RM) $@; $(LN) $(ROOTKEYDIR)/us_5 $@
155
156$(ROOTKEYDIR)/layout_23: $(ROOTKEYDIR)/france_5
157	$(RM) $@; $(LN) $(ROOTKEYDIR)/france_5 $@
158
159$(ROOTKEYDIR)/layout_24: $(ROOTKEYDIR)/denmark_5
160	$(RM) $@; $(LN) $(ROOTKEYDIR)/denmark_5 $@
161
162$(ROOTKEYDIR)/layout_25: $(ROOTKEYDIR)/germany_5
163	$(RM) $@; $(LN) $(ROOTKEYDIR)/germany_5 $@
164
165$(ROOTKEYDIR)/layout_26: $(ROOTKEYDIR)/italy_5
166	$(RM) $@; $(LN) $(ROOTKEYDIR)/italy_5 $@
167
168$(ROOTKEYDIR)/layout_27: $(ROOTKEYDIR)/netherlands_5
169	$(RM) $@; $(LN) $(ROOTKEYDIR)/netherlands_5 $@
170
171$(ROOTKEYDIR)/layout_28: $(ROOTKEYDIR)/norway_5
172	$(RM) $@; $(LN) $(ROOTKEYDIR)/norway_5 $@
173
174$(ROOTKEYDIR)/layout_29: $(ROOTKEYDIR)/portugal_5
175	$(RM) $@; $(LN) $(ROOTKEYDIR)/portugal_5 $@
176
177$(ROOTKEYDIR)/layout_2a: $(ROOTKEYDIR)/spain_5
178	$(RM) $@; $(LN) $(ROOTKEYDIR)/spain_5 $@
179
180$(ROOTKEYDIR)/layout_2b: $(ROOTKEYDIR)/sweden_5
181	$(RM) $@; $(LN) $(ROOTKEYDIR)/sweden_5 $@
182
183$(ROOTKEYDIR)/layout_2c: $(ROOTKEYDIR)/swiss_french_5
184	$(RM) $@; $(LN) $(ROOTKEYDIR)/swiss_french_5 $@
185
186$(ROOTKEYDIR)/layout_2d: $(ROOTKEYDIR)/swiss_german_5
187	$(RM) $@; $(LN) $(ROOTKEYDIR)/swiss_german_5 $@
188
189$(ROOTKEYDIR)/layout_2e: $(ROOTKEYDIR)/uk_5
190	$(RM) $@; $(LN) $(ROOTKEYDIR)/uk_5 $@
191
192$(ROOTKEYDIR)/layout_2f: $(ROOTKEYDIR)/korea_5
193	$(RM) $@; $(LN) $(ROOTKEYDIR)/korea_5 $@
194
195$(ROOTKEYDIR)/layout_30: $(ROOTKEYDIR)/taiwan_5
196	$(RM) $@; $(LN) $(ROOTKEYDIR)/taiwan_5 $@
197
198$(ROOTKEYDIR)/layout_31: $(ROOTKEYDIR)/japan_5
199	$(RM) $@; $(LN) $(ROOTKEYDIR)/japan_5 $@
200
201$(ROOTKEYDIR)/layout_32: $(ROOTKEYDIR)/canadian_french_5
202	$(RM) $@; $(LN) $(ROOTKEYDIR)/canadian_french_5 $@
203
204$(ROOTKEYDIR)/layout_33: $(ROOTKEYDIR)/hungary_5
205	$(RM) $@; $(LN) $(ROOTKEYDIR)/hungary_5 $@
206
207$(ROOTKEYDIR)/layout_34: $(ROOTKEYDIR)/poland_5
208	$(RM) $@; $(LN) $(ROOTKEYDIR)/poland_5 $@
209
210$(ROOTKEYDIR)/layout_35: $(ROOTKEYDIR)/czech_5
211	$(RM) $@; $(LN) $(ROOTKEYDIR)/czech_5 $@
212
213$(ROOTKEYDIR)/layout_36: $(ROOTKEYDIR)/russia_5
214	$(RM) $@; $(LN) $(ROOTKEYDIR)/russia_5 $@
215
216$(ROOTKEYDIR)/layout_3f: $(ROOTKEYDIR)/canadian_french_5_tbits5
217	$(RM) $@; $(LN) $(ROOTKEYDIR)/canadian_french_5_tbits5 $@
218
219$(ROOTKEYDIR)/layout_50: $(ROOTKEYDIR)/us_hobo
220	$(RM) $@; $(LN) $(ROOTKEYDIR)/us_hobo $@
221
222$(ROOTKEYDIR)/layout_51: $(ROOTKEYDIR)/us_hobo
223	$(RM) $@; $(LN) $(ROOTKEYDIR)/us_hobo $@
224
225$(ROOTKEYDIR)/layout_52: $(ROOTKEYDIR)/france_hobo
226	$(RM) $@; $(LN) $(ROOTKEYDIR)/france_hobo $@
227
228$(ROOTKEYDIR)/layout_53: $(ROOTKEYDIR)/denmark_hobo
229	$(RM) $@; $(LN) $(ROOTKEYDIR)/denmark_hobo $@
230
231$(ROOTKEYDIR)/layout_54: $(ROOTKEYDIR)/germany_hobo
232	$(RM) $@; $(LN) $(ROOTKEYDIR)/germany_hobo $@
233
234$(ROOTKEYDIR)/layout_55: $(ROOTKEYDIR)/italy_hobo
235	$(RM) $@; $(LN) $(ROOTKEYDIR)/italy_hobo $@
236
237$(ROOTKEYDIR)/layout_56: $(ROOTKEYDIR)/netherlands_hobo
238	$(RM) $@; $(LN) $(ROOTKEYDIR)/netherlands_hobo $@
239
240$(ROOTKEYDIR)/layout_57: $(ROOTKEYDIR)/norway_hobo
241	$(RM) $@; $(LN) $(ROOTKEYDIR)/norway_hobo $@
242
243$(ROOTKEYDIR)/layout_58: $(ROOTKEYDIR)/portugal_hobo
244	$(RM) $@; $(LN) $(ROOTKEYDIR)/portugal_hobo $@
245
246$(ROOTKEYDIR)/layout_59: $(ROOTKEYDIR)/spain_hobo
247	$(RM) $@; $(LN) $(ROOTKEYDIR)/spain_hobo $@
248
249$(ROOTKEYDIR)/layout_5a: $(ROOTKEYDIR)/sweden_hobo
250	$(RM) $@; $(LN) $(ROOTKEYDIR)/sweden_hobo $@
251
252$(ROOTKEYDIR)/layout_5b: $(ROOTKEYDIR)/swiss_french_hobo
253	$(RM) $@; $(LN) $(ROOTKEYDIR)/swiss_french_hobo $@
254
255$(ROOTKEYDIR)/layout_5c: $(ROOTKEYDIR)/swiss_german_hobo
256	$(RM) $@; $(LN) $(ROOTKEYDIR)/swiss_german_hobo $@
257
258$(ROOTKEYDIR)/layout_5d: $(ROOTKEYDIR)/uk_hobo
259	$(RM) $@; $(LN) $(ROOTKEYDIR)/uk_hobo $@
260
261$(ROOTKEYDIR)/layout_5e: $(ROOTKEYDIR)/korea_hobo
262	$(RM) $@; $(LN) $(ROOTKEYDIR)/korea_hobo $@
263
264$(ROOTKEYDIR)/layout_5f: $(ROOTKEYDIR)/taiwan_hobo
265	$(RM) $@; $(LN) $(ROOTKEYDIR)/taiwan_hobo $@
266
267$(ROOTKEYDIR)/layout_60: $(ROOTKEYDIR)/japan_hobo
268	$(RM) $@; $(LN) $(ROOTKEYDIR)/japan_hobo $@
269
270$(ROOTKEYDIR)/layout_61: $(ROOTKEYDIR)/canadian_french_hobo
271	$(RM) $@; $(LN) $(ROOTKEYDIR)/canadian_french_hobo $@
272
273include ../../Makefile.targ
274