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 denmark finnish france germany italy japan korea \
32        netherlands norway portugal reset spain sweden \
33        swiss_french swiss_german taiwan uk \
34        slovakia slovenia serbiaandmontenegro \
35        iceland croatia bulgaria belarus maltaus \
36        maltauk albania turkeyq turkeyf
37
38KEYTABLESCONFIG = kbd_layouts
39
40include ../../Makefile.cmd
41
42ROOTKEYTABLESDIR= $(ROOTSHLIB)/keytables
43ROOTKEYDIR= $(ROOTKEYTABLESDIR)/type_6
44ROOTKEYTABLES= $(KEYTABLES:%=$(ROOTKEYDIR)/%)
45ROOTKEYTABLESCON= $(KEYTABLESCONFIG:%=$(ROOTKEYDIR)/%)
46
47# there is an install target for each ROOT layout link
48#
49LAYOUTS= \
50        layout_00 layout_02 layout_06 layout_07 layout_08 layout_09 layout_0e \
51        layout_0f layout_10 layout_12 layout_13 layout_16 layout_19 \
52        layout_1a layout_1b layout_1c layout_1e layout_20 layout_21 \
53        layout_100 layout_18 layout_101 layout_102 layout_103 layout_104 \
54        layout_105 layout_106 layout_107 layout_108 layout_10f layout_1f \
55	layout_23
56
57ROOTLINKS= $(LAYOUTS:%=$(ROOTKEYDIR)/%)
58
59$(ROOTKEYTABLES) := FILEMODE = 444
60$(ROOTKEYTABLESCON) := FILEMODE = 444
61
62# install rule
63$(ROOTKEYDIR)/%: %
64	$(INS.file)
65
66.KEEP_STATE:
67
68all:  $(KEYTABLES)
69
70install: all $(ROOTKEYTABLESDIR) $(ROOTKEYDIR) $(ROOTKEYTABLES) $(ROOTLINKS)\
71	$(ROOTKEYTABLESCON)
72
73clean:
74
75$(ROOTKEYTABLESDIR):
76	$(INS.dir)
77
78$(ROOTKEYDIR): $(ROOTKEYTABLESDIR)
79	$(INS.dir)
80
81# install targets for ROOT layout links
82#
83$(ROOTKEYDIR)/layout_00: $(ROOTKEYDIR)/us
84	$(RM) $@; $(LN) $(ROOTKEYDIR)/us $@
85
86$(ROOTKEYDIR)/layout_02: $(ROOTKEYDIR)/belgium
87	$(RM) $@; $(LN) $(ROOTKEYDIR)/belgium $@
88
89$(ROOTKEYDIR)/layout_06: $(ROOTKEYDIR)/denmark
90	$(RM) $@; $(LN) $(ROOTKEYDIR)/denmark $@
91
92$(ROOTKEYDIR)/layout_07: $(ROOTKEYDIR)/finnish
93	$(RM) $@; $(LN) $(ROOTKEYDIR)/finnish $@
94
95$(ROOTKEYDIR)/layout_08: $(ROOTKEYDIR)/france
96	$(RM) $@; $(LN) $(ROOTKEYDIR)/france $@
97
98$(ROOTKEYDIR)/layout_09: $(ROOTKEYDIR)/germany
99	$(RM) $@; $(LN) $(ROOTKEYDIR)/germany $@
100
101$(ROOTKEYDIR)/layout_0e: $(ROOTKEYDIR)/italy
102	$(RM) $@; $(LN) $(ROOTKEYDIR)/italy $@
103
104$(ROOTKEYDIR)/layout_0f: $(ROOTKEYDIR)/japan
105	$(RM) $@; $(LN) $(ROOTKEYDIR)/japan $@
106
107$(ROOTKEYDIR)/layout_10: $(ROOTKEYDIR)/korea
108	$(RM) $@; $(LN) $(ROOTKEYDIR)/korea $@
109
110$(ROOTKEYDIR)/layout_12: $(ROOTKEYDIR)/netherlands
111	$(RM) $@; $(LN) $(ROOTKEYDIR)/netherlands $@
112
113$(ROOTKEYDIR)/layout_13: $(ROOTKEYDIR)/norway
114	$(RM) $@; $(LN) $(ROOTKEYDIR)/norway $@
115
116$(ROOTKEYDIR)/layout_16: $(ROOTKEYDIR)/portugal
117	$(RM) $@; $(LN) $(ROOTKEYDIR)/portugal $@
118
119$(ROOTKEYDIR)/layout_19: $(ROOTKEYDIR)/spain
120	$(RM) $@; $(LN) $(ROOTKEYDIR)/spain $@
121
122$(ROOTKEYDIR)/layout_1a: $(ROOTKEYDIR)/sweden
123	$(RM) $@; $(LN) $(ROOTKEYDIR)/sweden $@
124
125$(ROOTKEYDIR)/layout_1b: $(ROOTKEYDIR)/swiss_french
126	$(RM) $@; $(LN) $(ROOTKEYDIR)/swiss_french $@
127
128$(ROOTKEYDIR)/layout_1c: $(ROOTKEYDIR)/swiss_german
129	$(RM) $@; $(LN) $(ROOTKEYDIR)/swiss_german $@
130
131$(ROOTKEYDIR)/layout_1e: $(ROOTKEYDIR)/taiwan
132	$(RM) $@; $(LN) $(ROOTKEYDIR)/taiwan $@
133
134$(ROOTKEYDIR)/layout_20: $(ROOTKEYDIR)/uk
135	$(RM) $@; $(LN) $(ROOTKEYDIR)/uk $@
136
137$(ROOTKEYDIR)/layout_21: $(ROOTKEYDIR)/us
138	$(RM) $@; $(LN) $(ROOTKEYDIR)/us $@
139
140$(ROOTKEYDIR)/layout_18: $(ROOTKEYDIR)/slovakia
141	$(RM) $@; $(LN) $(ROOTKEYDIR)/slovakia $@
142
143$(ROOTKEYDIR)/layout_100: $(ROOTKEYDIR)/slovenia
144	$(RM) $@; $(LN) $(ROOTKEYDIR)/slovenia $@
145
146$(ROOTKEYDIR)/layout_101: $(ROOTKEYDIR)/serbiaandmontenegro
147	$(RM) $@; $(LN) $(ROOTKEYDIR)/serbiaandmontenegro $@
148
149$(ROOTKEYDIR)/layout_102: $(ROOTKEYDIR)/iceland
150	$(RM) $@; $(LN) $(ROOTKEYDIR)/iceland $@
151
152$(ROOTKEYDIR)/layout_103: $(ROOTKEYDIR)/croatia
153	$(RM) $@; $(LN) $(ROOTKEYDIR)/croatia  $@
154
155$(ROOTKEYDIR)/layout_104: $(ROOTKEYDIR)/bulgaria
156	$(RM) $@; $(LN) $(ROOTKEYDIR)/bulgaria  $@
157
158$(ROOTKEYDIR)/layout_105: $(ROOTKEYDIR)/belarus
159	$(RM) $@; $(LN) $(ROOTKEYDIR)/belarus  $@
160
161$(ROOTKEYDIR)/layout_106: $(ROOTKEYDIR)/maltaus
162	$(RM) $@; $(LN) $(ROOTKEYDIR)/maltaus  $@
163
164$(ROOTKEYDIR)/layout_107: $(ROOTKEYDIR)/maltauk
165	$(RM) $@; $(LN) $(ROOTKEYDIR)/maltauk  $@
166
167$(ROOTKEYDIR)/layout_108: $(ROOTKEYDIR)/albania
168	$(RM) $@; $(LN) $(ROOTKEYDIR)/albania  $@
169
170$(ROOTKEYDIR)/layout_10f: $(ROOTKEYDIR)/japan
171	$(RM) $@; $(LN) $(ROOTKEYDIR)/japan $@
172
173$(ROOTKEYDIR)/layout_1f: $(ROOTKEYDIR)/turkeyq
174	$(RM) $@; $(LN) $(ROOTKEYDIR)/turkeyq  $@
175
176$(ROOTKEYDIR)/layout_23: $(ROOTKEYDIR)/turkeyf
177	$(RM) $@; $(LN) $(ROOTKEYDIR)/turkeyf  $@
178
179
180include ../../Makefile.targ
181