Home | History | Annotate | Download | only in type_6
      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 #
     23 #
     24 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
     25 # Use is subject to license terms.
     26 #
     27 # cmd/loadkeys/type_6/Makefile
     28 
     29 KEYTABLES = \
     30         us belgium czech denmark finnish france canadian_french \
     31  	germany greece hungary italy japan korea \
     32         netherlands norway portugal poland 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 latvia lithuania macedonia russia \
     37         latinamerica canadian_bilingual brazil dvorak estonia romania
     38 
     39 KEYTABLESCONFIG = kbd_layouts
     40 
     41 include ../../Makefile.cmd
     42 
     43 ROOTKEYTABLESDIR= $(ROOTSHLIB)/keytables
     44 ROOTKEYDIR= $(ROOTKEYTABLESDIR)/type_6
     45 ROOTKEYTABLES= $(KEYTABLES:%=$(ROOTKEYDIR)/%)
     46 ROOTKEYTABLESCON= $(KEYTABLESCONFIG:%=$(ROOTKEYDIR)/%)
     47 
     48 # there is an install target for each ROOT layout link
     49 #
     50 LAYOUTS= \
     51         layout_00 layout_02 layout_04 layout_06 layout_07 layout_08 \
     52 	layout_09 layout_0e layout_0f layout_10 layout_12 layout_13 \
     53 	layout_16 layout_17 layout_19 layout_0a layout_0c layout_109 \
     54 	layout_10a layout_10b layout_1a layout_1b layout_1c layout_1e \
     55 	layout_20 layout_21 layout_100 layout_18 layout_101 layout_102 \
     56 	layout_103 layout_104 layout_105 layout_106 layout_107 layout_108 \
     57 	layout_10f layout_1f layout_23 layout_15 layout_05 layout_11 \
     58 	layout_03 layout_110 layout_111 layout_112 layout_113
     59 
     60 ROOTLINKS= $(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 
     71 all:  $(KEYTABLES)
     72 
     73 install: all $(ROOTKEYTABLESDIR) $(ROOTKEYDIR) $(ROOTKEYTABLES) $(ROOTLINKS)\
     74 	$(ROOTKEYTABLESCON)
     75 
     76 clean:
     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_03: $(ROOTKEYDIR)/canadian_bilingual
     93 	$(RM) $@; $(LN) $(ROOTKEYDIR)/canadian_bilingual $@
     94 
     95 $(ROOTKEYDIR)/layout_04: $(ROOTKEYDIR)/canadian_french
     96 	$(RM) $@; $(LN) $(ROOTKEYDIR)/canadian_french $@
     97 
     98 $(ROOTKEYDIR)/layout_05: $(ROOTKEYDIR)/czech
     99 	$(RM) $@; $(LN) $(ROOTKEYDIR)/czech $@
    100 
    101 $(ROOTKEYDIR)/layout_06: $(ROOTKEYDIR)/denmark
    102 	$(RM) $@; $(LN) $(ROOTKEYDIR)/denmark $@
    103 
    104 $(ROOTKEYDIR)/layout_07: $(ROOTKEYDIR)/finnish
    105 	$(RM) $@; $(LN) $(ROOTKEYDIR)/finnish $@
    106 
    107 $(ROOTKEYDIR)/layout_08: $(ROOTKEYDIR)/france
    108 	$(RM) $@; $(LN) $(ROOTKEYDIR)/france $@
    109 
    110 $(ROOTKEYDIR)/layout_09: $(ROOTKEYDIR)/germany
    111 	$(RM) $@; $(LN) $(ROOTKEYDIR)/germany $@
    112 
    113 $(ROOTKEYDIR)/layout_0a: $(ROOTKEYDIR)/greece
    114 	$(RM) $@; $(LN) $(ROOTKEYDIR)/greece $@
    115 
    116 $(ROOTKEYDIR)/layout_0c: $(ROOTKEYDIR)/hungary
    117 	$(RM) $@; $(LN) $(ROOTKEYDIR)/hungary $@
    118 
    119 $(ROOTKEYDIR)/layout_0e: $(ROOTKEYDIR)/italy
    120 	$(RM) $@; $(LN) $(ROOTKEYDIR)/italy $@
    121 
    122 $(ROOTKEYDIR)/layout_0f: $(ROOTKEYDIR)/japan
    123 	$(RM) $@; $(LN) $(ROOTKEYDIR)/japan $@
    124 
    125 $(ROOTKEYDIR)/layout_10: $(ROOTKEYDIR)/korea
    126 	$(RM) $@; $(LN) $(ROOTKEYDIR)/korea $@
    127 
    128 $(ROOTKEYDIR)/layout_11: $(ROOTKEYDIR)/latinamerica
    129 	$(RM) $@; $(LN) $(ROOTKEYDIR)/latinamerica $@
    130 
    131 $(ROOTKEYDIR)/layout_12: $(ROOTKEYDIR)/netherlands
    132 	$(RM) $@; $(LN) $(ROOTKEYDIR)/netherlands $@
    133 
    134 $(ROOTKEYDIR)/layout_13: $(ROOTKEYDIR)/norway
    135 	$(RM) $@; $(LN) $(ROOTKEYDIR)/norway $@
    136 
    137 $(ROOTKEYDIR)/layout_16: $(ROOTKEYDIR)/portugal
    138 	$(RM) $@; $(LN) $(ROOTKEYDIR)/portugal $@
    139 
    140 $(ROOTKEYDIR)/layout_15: $(ROOTKEYDIR)/poland
    141 	$(RM) $@; $(LN) $(ROOTKEYDIR)/poland $@
    142 
    143 $(ROOTKEYDIR)/layout_17: $(ROOTKEYDIR)/russia
    144 	$(RM) $@; $(LN) $(ROOTKEYDIR)/russia $@
    145 
    146 $(ROOTKEYDIR)/layout_19: $(ROOTKEYDIR)/spain
    147 	$(RM) $@; $(LN) $(ROOTKEYDIR)/spain $@
    148 
    149 $(ROOTKEYDIR)/layout_1a: $(ROOTKEYDIR)/sweden
    150 	$(RM) $@; $(LN) $(ROOTKEYDIR)/sweden $@
    151 
    152 $(ROOTKEYDIR)/layout_1b: $(ROOTKEYDIR)/swiss_french
    153 	$(RM) $@; $(LN) $(ROOTKEYDIR)/swiss_french $@
    154 
    155 $(ROOTKEYDIR)/layout_1c: $(ROOTKEYDIR)/swiss_german
    156 	$(RM) $@; $(LN) $(ROOTKEYDIR)/swiss_german $@
    157 
    158 $(ROOTKEYDIR)/layout_1e: $(ROOTKEYDIR)/taiwan
    159 	$(RM) $@; $(LN) $(ROOTKEYDIR)/taiwan $@
    160 
    161 $(ROOTKEYDIR)/layout_20: $(ROOTKEYDIR)/uk
    162 	$(RM) $@; $(LN) $(ROOTKEYDIR)/uk $@
    163 
    164 $(ROOTKEYDIR)/layout_21: $(ROOTKEYDIR)/us
    165 	$(RM) $@; $(LN) $(ROOTKEYDIR)/us $@
    166 
    167 $(ROOTKEYDIR)/layout_18: $(ROOTKEYDIR)/slovakia
    168 	$(RM) $@; $(LN) $(ROOTKEYDIR)/slovakia $@
    169 
    170 $(ROOTKEYDIR)/layout_100: $(ROOTKEYDIR)/slovenia
    171 	$(RM) $@; $(LN) $(ROOTKEYDIR)/slovenia $@
    172 
    173 $(ROOTKEYDIR)/layout_101: $(ROOTKEYDIR)/serbiaandmontenegro
    174 	$(RM) $@; $(LN) $(ROOTKEYDIR)/serbiaandmontenegro $@
    175 
    176 $(ROOTKEYDIR)/layout_102: $(ROOTKEYDIR)/iceland
    177 	$(RM) $@; $(LN) $(ROOTKEYDIR)/iceland $@
    178 
    179 $(ROOTKEYDIR)/layout_103: $(ROOTKEYDIR)/croatia
    180 	$(RM) $@; $(LN) $(ROOTKEYDIR)/croatia  $@
    181 
    182 $(ROOTKEYDIR)/layout_104: $(ROOTKEYDIR)/bulgaria
    183 	$(RM) $@; $(LN) $(ROOTKEYDIR)/bulgaria  $@
    184 
    185 $(ROOTKEYDIR)/layout_105: $(ROOTKEYDIR)/belarus
    186 	$(RM) $@; $(LN) $(ROOTKEYDIR)/belarus  $@
    187 
    188 $(ROOTKEYDIR)/layout_106: $(ROOTKEYDIR)/maltaus
    189 	$(RM) $@; $(LN) $(ROOTKEYDIR)/maltaus  $@
    190 
    191 $(ROOTKEYDIR)/layout_107: $(ROOTKEYDIR)/maltauk
    192 	$(RM) $@; $(LN) $(ROOTKEYDIR)/maltauk  $@
    193 
    194 $(ROOTKEYDIR)/layout_108: $(ROOTKEYDIR)/albania
    195 	$(RM) $@; $(LN) $(ROOTKEYDIR)/albania  $@
    196 
    197 $(ROOTKEYDIR)/layout_109: $(ROOTKEYDIR)/lithuania
    198 	$(RM) $@; $(LN) $(ROOTKEYDIR)/lithuania $@
    199 
    200 $(ROOTKEYDIR)/layout_10a: $(ROOTKEYDIR)/latvia
    201 	$(RM) $@; $(LN) $(ROOTKEYDIR)/latvia $@
    202 
    203 $(ROOTKEYDIR)/layout_10b: $(ROOTKEYDIR)/macedonia
    204 	$(RM) $@; $(LN) $(ROOTKEYDIR)/macedonia $@
    205 
    206 $(ROOTKEYDIR)/layout_10f: $(ROOTKEYDIR)/japan
    207 	$(RM) $@; $(LN) $(ROOTKEYDIR)/japan $@
    208 
    209 $(ROOTKEYDIR)/layout_1f: $(ROOTKEYDIR)/turkeyq
    210 	$(RM) $@; $(LN) $(ROOTKEYDIR)/turkeyq  $@
    211 
    212 $(ROOTKEYDIR)/layout_23: $(ROOTKEYDIR)/turkeyf
    213 	$(RM) $@; $(LN) $(ROOTKEYDIR)/turkeyf  $@
    214 
    215 $(ROOTKEYDIR)/layout_110: $(ROOTKEYDIR)/brazil
    216 	$(RM) $@; $(LN) $(ROOTKEYDIR)/brazil  $@
    217 
    218 $(ROOTKEYDIR)/layout_111: $(ROOTKEYDIR)/dvorak
    219 	$(RM) $@; $(LN) $(ROOTKEYDIR)/dvorak  $@
    220 
    221 $(ROOTKEYDIR)/layout_112: $(ROOTKEYDIR)/estonia
    222 	$(RM) $@; $(LN) $(ROOTKEYDIR)/estonia  $@
    223 
    224 $(ROOTKEYDIR)/layout_113: $(ROOTKEYDIR)/romania
    225 	$(RM) $@; $(LN) $(ROOTKEYDIR)/romania  $@
    226 
    227 include ../../Makefile.targ
    228