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