xref: /illumos-gate/usr/src/cmd/loadkeys/type_101/Makefile (revision 797f979d1fe26bfb1cdeb3e7a86ed24c0b654200)
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# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25#
26# cmd/loadkeys/type_101/Makefile
27
28KEYTABLES = \
29	canadian_french2 \
30	czech \
31	denmark \
32	france \
33	germany \
34	greece \
35	hungary \
36	italy \
37	j3100 \
38	japan \
39	korea \
40	latvia \
41	lithuania \
42	netherlands \
43	norway \
44	poland \
45	portugal \
46	reset \
47	russia \
48	spain \
49	sweden \
50	swiss_french \
51	swiss_german \
52	traditional_chinese \
53	turkey \
54	uk \
55	us
56
57include ../../Makefile.cmd
58
59ROOTKEYTABLESDIR= $(ROOTSHLIB)/keytables
60ROOTKEYDIR= $(ROOTKEYTABLESDIR)/type_101
61ROOTKEYTABLES= $(KEYTABLES:%=$(ROOTKEYDIR)/%)
62
63# there is an install target for each ROOT layout link
64#
65LAYOUTS= \
66	layout_00 \
67	layout_01 \
68	layout_22 \
69	layout_23 \
70	layout_24 \
71	layout_25 \
72	layout_26 \
73	layout_27 \
74	layout_28 \
75	layout_29 \
76	layout_2a \
77	layout_2b \
78	layout_2c \
79	layout_2d \
80	layout_2e \
81	layout_2f \
82	layout_30 \
83	layout_31 \
84	layout_32 \
85	layout_33 \
86	layout_34 \
87	layout_35 \
88	layout_36 \
89	layout_37 \
90	layout_38 \
91	layout_39 \
92	layout_3b \
93	layout_3e9
94
95ROOTLINKS= $(LAYOUTS:%=$(ROOTKEYDIR)/%)
96
97$(ROOTKEYTABLES) := FILEMODE = 444
98
99# install rule
100$(ROOTKEYDIR)/%: %
101	$(INS.file)
102
103.KEEP_STATE:
104
105all:  $(KEYTABLES)
106
107install: all $(ROOTKEYTABLESDIR) $(ROOTKEYDIR) $(ROOTKEYTABLES) $(ROOTLINKS)
108
109clean:
110
111neaten:
112	for i in $(KEYTABLES); do		\
113		sh ./neaten.sh $$i;		\
114		if cmp -s $$i $$i.neat; then	\
115			echo No change to $$i.;	\
116			rm $$i.neat;		\
117		fi;				\
118	done
119
120$(ROOTKEYTABLESDIR):
121	$(INS.dir)
122
123$(ROOTKEYDIR): $(ROOTKEYTABLESDIR)
124	$(INS.dir)
125
126# install targets for ROOT layout links
127#
128$(ROOTKEYDIR)/layout_00: $(ROOTKEYDIR)/us
129	$(RM) $@; $(LN) $(ROOTKEYDIR)/us $@
130
131$(ROOTKEYDIR)/layout_01:	$(ROOTKEYDIR)/us
132	$(RM) $@; $(LN) $(ROOTKEYDIR)/us $@
133
134$(ROOTKEYDIR)/layout_22:	$(ROOTKEYDIR)/j3100
135	$(RM) $@; $(LN) $(ROOTKEYDIR)/j3100 $@
136
137$(ROOTKEYDIR)/layout_23:	$(ROOTKEYDIR)/france
138	$(RM) $@; $(LN) $(ROOTKEYDIR)/france $@
139
140$(ROOTKEYDIR)/layout_24:	$(ROOTKEYDIR)/denmark
141	$(RM) $@; $(LN) $(ROOTKEYDIR)/denmark $@
142
143$(ROOTKEYDIR)/layout_25:	$(ROOTKEYDIR)/germany
144	$(RM) $@; $(LN) $(ROOTKEYDIR)/germany $@
145
146$(ROOTKEYDIR)/layout_26:	$(ROOTKEYDIR)/italy
147	$(RM) $@; $(LN) $(ROOTKEYDIR)/italy $@
148
149$(ROOTKEYDIR)/layout_27:	$(ROOTKEYDIR)/netherlands
150	$(RM) $@; $(LN) $(ROOTKEYDIR)/netherlands $@
151
152$(ROOTKEYDIR)/layout_28:	$(ROOTKEYDIR)/norway
153	$(RM) $@; $(LN) $(ROOTKEYDIR)/norway $@
154
155$(ROOTKEYDIR)/layout_29:	$(ROOTKEYDIR)/portugal
156	$(RM) $@; $(LN) $(ROOTKEYDIR)/portugal $@
157
158$(ROOTKEYDIR)/layout_2a:	$(ROOTKEYDIR)/spain
159	$(RM) $@; $(LN) $(ROOTKEYDIR)/spain $@
160
161$(ROOTKEYDIR)/layout_2b:	$(ROOTKEYDIR)/sweden
162	$(RM) $@; $(LN) $(ROOTKEYDIR)/sweden $@
163
164$(ROOTKEYDIR)/layout_2c:	$(ROOTKEYDIR)/swiss_french
165	$(RM) $@; $(LN) $(ROOTKEYDIR)/swiss_french $@
166
167$(ROOTKEYDIR)/layout_2d:	$(ROOTKEYDIR)/swiss_german
168	$(RM) $@; $(LN) $(ROOTKEYDIR)/swiss_german $@
169
170$(ROOTKEYDIR)/layout_2e:	$(ROOTKEYDIR)/uk
171	$(RM) $@; $(LN) $(ROOTKEYDIR)/uk $@
172
173$(ROOTKEYDIR)/layout_2f:	$(ROOTKEYDIR)/korea
174	$(RM) $@; $(LN) $(ROOTKEYDIR)/korea $@
175
176$(ROOTKEYDIR)/layout_30:	$(ROOTKEYDIR)/traditional_chinese
177	$(RM) $@; $(LN) $(ROOTKEYDIR)/traditional_chinese $@
178
179$(ROOTKEYDIR)/layout_31:	$(ROOTKEYDIR)/japan
180	$(RM) $@; $(LN) $(ROOTKEYDIR)/japan $@
181
182$(ROOTKEYDIR)/layout_32:	$(ROOTKEYDIR)/canadian_french2
183	$(RM) $@; $(LN) $(ROOTKEYDIR)/canadian_french2 $@
184
185$(ROOTKEYDIR)/layout_33:	$(ROOTKEYDIR)/hungary
186	$(RM) $@; $(LN) $(ROOTKEYDIR)/hungary $@
187
188$(ROOTKEYDIR)/layout_34:	$(ROOTKEYDIR)/poland
189	$(RM) $@; $(LN) $(ROOTKEYDIR)/poland $@
190
191$(ROOTKEYDIR)/layout_35:	$(ROOTKEYDIR)/czech
192	$(RM) $@; $(LN) $(ROOTKEYDIR)/czech $@
193
194$(ROOTKEYDIR)/layout_36:	$(ROOTKEYDIR)/russia
195	$(RM) $@; $(LN) $(ROOTKEYDIR)/russia $@
196
197$(ROOTKEYDIR)/layout_37:	$(ROOTKEYDIR)/latvia
198	$(RM) $@; $(LN) $(ROOTKEYDIR)/latvia $@
199
200$(ROOTKEYDIR)/layout_38:	$(ROOTKEYDIR)/turkey
201	$(RM) $@; $(LN) $(ROOTKEYDIR)/turkey $@
202
203$(ROOTKEYDIR)/layout_39:	$(ROOTKEYDIR)/greece
204	$(RM) $@; $(LN) $(ROOTKEYDIR)/greece $@
205
206$(ROOTKEYDIR)/layout_3b:	$(ROOTKEYDIR)/lithuania
207	$(RM) $@; $(LN) $(ROOTKEYDIR)/lithuania $@
208
209$(ROOTKEYDIR)/layout_3e9:	$(ROOTKEYDIR)/us
210	$(RM) $@; $(LN) $(ROOTKEYDIR)/us $@
211
212include ../../Makefile.targ
213