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