xref: /illumos-gate/usr/src/cmd/loadkeys/type_6/Makefile (revision e2738c5e21a9e5d9a6525e48af4738deda3df455)
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 (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#
22#pragma ident	"%Z%%M%	%I%	%E% SMI"
23#
24#
25# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
26# Use is subject to license terms.
27#
28# cmd/loadkeys/type_6/Makefile
29
30KEYTABLES = \
31        us belgium czech denmark finnish france canadian_french \
32 	germany greece hungary italy japan korea \
33        netherlands norway portugal poland reset spain sweden \
34        swiss_french swiss_german taiwan uk \
35        slovakia slovenia serbiaandmontenegro \
36        iceland croatia bulgaria belarus maltaus \
37        maltauk albania turkeyq turkeyf latvia lithuania macedonia russia \
38	latinamerica
39
40KEYTABLESCONFIG = kbd_layouts
41
42include ../../Makefile.cmd
43
44ROOTKEYTABLESDIR= $(ROOTSHLIB)/keytables
45ROOTKEYDIR= $(ROOTKEYTABLESDIR)/type_6
46ROOTKEYTABLES= $(KEYTABLES:%=$(ROOTKEYDIR)/%)
47ROOTKEYTABLESCON= $(KEYTABLESCONFIG:%=$(ROOTKEYDIR)/%)
48
49# there is an install target for each ROOT layout link
50#
51LAYOUTS= \
52        layout_00 layout_02 layout_04 layout_06 layout_07 layout_08 \
53	layout_09 layout_0e layout_0f layout_10 layout_12 layout_13 \
54	layout_16 layout_17 layout_19 layout_0a layout_0c layout_109 \
55	layout_10a layout_10b layout_1a layout_1b layout_1c layout_1e \
56	layout_20 layout_21 layout_100 layout_18 layout_101 layout_102 \
57	layout_103 layout_104 layout_105 layout_106 layout_107 layout_108 \
58	layout_10f layout_1f layout_23 layout_15 layout_05 layout_11
59
60ROOTLINKS= $(LAYOUTS:%=$(ROOTKEYDIR)/%)
61
62$(ROOTKEYTABLES) := FILEMODE = 444
63$(ROOTKEYTABLESCON) := FILEMODE = 444
64
65# install rule
66$(ROOTKEYDIR)/%: %
67	$(INS.file)
68
69.KEEP_STATE:
70
71all:  $(KEYTABLES)
72
73install: all $(ROOTKEYTABLESDIR) $(ROOTKEYDIR) $(ROOTKEYTABLES) $(ROOTLINKS)\
74	$(ROOTKEYTABLESCON)
75
76clean:
77
78$(ROOTKEYTABLESDIR):
79	$(INS.dir)
80
81$(ROOTKEYDIR): $(ROOTKEYTABLESDIR)
82	$(INS.dir)
83
84# install targets for ROOT layout links
85#
86$(ROOTKEYDIR)/layout_00: $(ROOTKEYDIR)/us
87	$(RM) $@; $(LN) $(ROOTKEYDIR)/us $@
88
89$(ROOTKEYDIR)/layout_02: $(ROOTKEYDIR)/belgium
90	$(RM) $@; $(LN) $(ROOTKEYDIR)/belgium $@
91
92$(ROOTKEYDIR)/layout_04: $(ROOTKEYDIR)/canadian_french
93	$(RM) $@; $(LN) $(ROOTKEYDIR)/canadian_french $@
94
95$(ROOTKEYDIR)/layout_05: $(ROOTKEYDIR)/czech
96	$(RM) $@; $(LN) $(ROOTKEYDIR)/czech $@
97
98$(ROOTKEYDIR)/layout_06: $(ROOTKEYDIR)/denmark
99	$(RM) $@; $(LN) $(ROOTKEYDIR)/denmark $@
100
101$(ROOTKEYDIR)/layout_07: $(ROOTKEYDIR)/finnish
102	$(RM) $@; $(LN) $(ROOTKEYDIR)/finnish $@
103
104$(ROOTKEYDIR)/layout_08: $(ROOTKEYDIR)/france
105	$(RM) $@; $(LN) $(ROOTKEYDIR)/france $@
106
107$(ROOTKEYDIR)/layout_09: $(ROOTKEYDIR)/germany
108	$(RM) $@; $(LN) $(ROOTKEYDIR)/germany $@
109
110$(ROOTKEYDIR)/layout_0a: $(ROOTKEYDIR)/greece
111	$(RM) $@; $(LN) $(ROOTKEYDIR)/greece $@
112
113$(ROOTKEYDIR)/layout_0c: $(ROOTKEYDIR)/hungary
114	$(RM) $@; $(LN) $(ROOTKEYDIR)/hungary $@
115
116$(ROOTKEYDIR)/layout_0e: $(ROOTKEYDIR)/italy
117	$(RM) $@; $(LN) $(ROOTKEYDIR)/italy $@
118
119$(ROOTKEYDIR)/layout_0f: $(ROOTKEYDIR)/japan
120	$(RM) $@; $(LN) $(ROOTKEYDIR)/japan $@
121
122$(ROOTKEYDIR)/layout_10: $(ROOTKEYDIR)/korea
123	$(RM) $@; $(LN) $(ROOTKEYDIR)/korea $@
124
125$(ROOTKEYDIR)/layout_11: $(ROOTKEYDIR)/latinamerica
126	$(RM) $@; $(LN) $(ROOTKEYDIR)/latinamerica $@
127
128$(ROOTKEYDIR)/layout_12: $(ROOTKEYDIR)/netherlands
129	$(RM) $@; $(LN) $(ROOTKEYDIR)/netherlands $@
130
131$(ROOTKEYDIR)/layout_13: $(ROOTKEYDIR)/norway
132	$(RM) $@; $(LN) $(ROOTKEYDIR)/norway $@
133
134$(ROOTKEYDIR)/layout_16: $(ROOTKEYDIR)/portugal
135	$(RM) $@; $(LN) $(ROOTKEYDIR)/portugal $@
136
137$(ROOTKEYDIR)/layout_15: $(ROOTKEYDIR)/poland
138	$(RM) $@; $(LN) $(ROOTKEYDIR)/poland $@
139
140$(ROOTKEYDIR)/layout_17: $(ROOTKEYDIR)/russia
141	$(RM) $@; $(LN) $(ROOTKEYDIR)/russia $@
142
143$(ROOTKEYDIR)/layout_19: $(ROOTKEYDIR)/spain
144	$(RM) $@; $(LN) $(ROOTKEYDIR)/spain $@
145
146$(ROOTKEYDIR)/layout_1a: $(ROOTKEYDIR)/sweden
147	$(RM) $@; $(LN) $(ROOTKEYDIR)/sweden $@
148
149$(ROOTKEYDIR)/layout_1b: $(ROOTKEYDIR)/swiss_french
150	$(RM) $@; $(LN) $(ROOTKEYDIR)/swiss_french $@
151
152$(ROOTKEYDIR)/layout_1c: $(ROOTKEYDIR)/swiss_german
153	$(RM) $@; $(LN) $(ROOTKEYDIR)/swiss_german $@
154
155$(ROOTKEYDIR)/layout_1e: $(ROOTKEYDIR)/taiwan
156	$(RM) $@; $(LN) $(ROOTKEYDIR)/taiwan $@
157
158$(ROOTKEYDIR)/layout_20: $(ROOTKEYDIR)/uk
159	$(RM) $@; $(LN) $(ROOTKEYDIR)/uk $@
160
161$(ROOTKEYDIR)/layout_21: $(ROOTKEYDIR)/us
162	$(RM) $@; $(LN) $(ROOTKEYDIR)/us $@
163
164$(ROOTKEYDIR)/layout_18: $(ROOTKEYDIR)/slovakia
165	$(RM) $@; $(LN) $(ROOTKEYDIR)/slovakia $@
166
167$(ROOTKEYDIR)/layout_100: $(ROOTKEYDIR)/slovenia
168	$(RM) $@; $(LN) $(ROOTKEYDIR)/slovenia $@
169
170$(ROOTKEYDIR)/layout_101: $(ROOTKEYDIR)/serbiaandmontenegro
171	$(RM) $@; $(LN) $(ROOTKEYDIR)/serbiaandmontenegro $@
172
173$(ROOTKEYDIR)/layout_102: $(ROOTKEYDIR)/iceland
174	$(RM) $@; $(LN) $(ROOTKEYDIR)/iceland $@
175
176$(ROOTKEYDIR)/layout_103: $(ROOTKEYDIR)/croatia
177	$(RM) $@; $(LN) $(ROOTKEYDIR)/croatia  $@
178
179$(ROOTKEYDIR)/layout_104: $(ROOTKEYDIR)/bulgaria
180	$(RM) $@; $(LN) $(ROOTKEYDIR)/bulgaria  $@
181
182$(ROOTKEYDIR)/layout_105: $(ROOTKEYDIR)/belarus
183	$(RM) $@; $(LN) $(ROOTKEYDIR)/belarus  $@
184
185$(ROOTKEYDIR)/layout_106: $(ROOTKEYDIR)/maltaus
186	$(RM) $@; $(LN) $(ROOTKEYDIR)/maltaus  $@
187
188$(ROOTKEYDIR)/layout_107: $(ROOTKEYDIR)/maltauk
189	$(RM) $@; $(LN) $(ROOTKEYDIR)/maltauk  $@
190
191$(ROOTKEYDIR)/layout_108: $(ROOTKEYDIR)/albania
192	$(RM) $@; $(LN) $(ROOTKEYDIR)/albania  $@
193
194$(ROOTKEYDIR)/layout_109: $(ROOTKEYDIR)/lithuania
195	$(RM) $@; $(LN) $(ROOTKEYDIR)/lithuania $@
196
197$(ROOTKEYDIR)/layout_10a: $(ROOTKEYDIR)/latvia
198	$(RM) $@; $(LN) $(ROOTKEYDIR)/latvia $@
199
200$(ROOTKEYDIR)/layout_10b: $(ROOTKEYDIR)/macedonia
201	$(RM) $@; $(LN) $(ROOTKEYDIR)/macedonia $@
202
203$(ROOTKEYDIR)/layout_10f: $(ROOTKEYDIR)/japan
204	$(RM) $@; $(LN) $(ROOTKEYDIR)/japan $@
205
206$(ROOTKEYDIR)/layout_1f: $(ROOTKEYDIR)/turkeyq
207	$(RM) $@; $(LN) $(ROOTKEYDIR)/turkeyq  $@
208
209$(ROOTKEYDIR)/layout_23: $(ROOTKEYDIR)/turkeyf
210	$(RM) $@; $(LN) $(ROOTKEYDIR)/turkeyf  $@
211
212
213include ../../Makefile.targ
214