Makefile revision 7db6e34e0974b29ab599ed5dbc95a2f71810f321
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
#pragma ident "%Z%%M% %I% %E% SMI"
#
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# cmd/loadkeys/type_6/Makefile
KEYTABLES = \
us belgium denmark finnish france germany italy japan korea \
netherlands norway portugal reset spain sweden \
swiss_french swiss_german taiwan uk \
slovakia slovenia serbiaandmontenegro \
iceland croatia bulgaria belarus maltaus \
maltauk albania turkeyq turkeyf
KEYTABLESCONFIG = kbd_layouts
include ../../Makefile.cmd
ROOTKEYTABLESDIR= $(ROOTSHLIB)/keytables
ROOTKEYDIR= $(ROOTKEYTABLESDIR)/type_6
ROOTKEYTABLES= $(KEYTABLES:%=$(ROOTKEYDIR)/%)
ROOTKEYTABLESCON= $(KEYTABLESCONFIG:%=$(ROOTKEYDIR)/%)
# there is an install target for each ROOT layout link
#
LAYOUTS= \
layout_00 layout_02 layout_06 layout_07 layout_08 layout_09 layout_0e \
layout_0f layout_10 layout_12 layout_13 layout_16 layout_19 \
layout_1a layout_1b layout_1c layout_1e layout_20 layout_21 \
layout_100 layout_18 layout_101 layout_102 layout_103 layout_104 \
layout_105 layout_106 layout_107 layout_108 layout_10f layout_1f \
layout_23
ROOTLINKS= $(LAYOUTS:%=$(ROOTKEYDIR)/%)
$(ROOTKEYTABLES) := FILEMODE = 444
$(ROOTKEYTABLESCON) := FILEMODE = 444
# install rule
$(ROOTKEYDIR)/%: %
$(INS.file)
.KEEP_STATE:
all: $(KEYTABLES)
install: all $(ROOTKEYTABLESDIR) $(ROOTKEYDIR) $(ROOTKEYTABLES) $(ROOTLINKS)\
$(ROOTKEYTABLESCON)
clean:
$(ROOTKEYTABLESDIR):
$(INS.dir)
$(ROOTKEYDIR): $(ROOTKEYTABLESDIR)
$(INS.dir)
# install targets for ROOT layout links
#
$(ROOTKEYDIR)/layout_00: $(ROOTKEYDIR)/us
$(RM) $@; $(LN) $(ROOTKEYDIR)/us $@
$(ROOTKEYDIR)/layout_02: $(ROOTKEYDIR)/belgium
$(RM) $@; $(LN) $(ROOTKEYDIR)/belgium $@
$(ROOTKEYDIR)/layout_06: $(ROOTKEYDIR)/denmark
$(RM) $@; $(LN) $(ROOTKEYDIR)/denmark $@
$(ROOTKEYDIR)/layout_07: $(ROOTKEYDIR)/finnish
$(RM) $@; $(LN) $(ROOTKEYDIR)/finnish $@
$(ROOTKEYDIR)/layout_08: $(ROOTKEYDIR)/france
$(RM) $@; $(LN) $(ROOTKEYDIR)/france $@
$(ROOTKEYDIR)/layout_09: $(ROOTKEYDIR)/germany
$(RM) $@; $(LN) $(ROOTKEYDIR)/germany $@
$(ROOTKEYDIR)/layout_0e: $(ROOTKEYDIR)/italy
$(RM) $@; $(LN) $(ROOTKEYDIR)/italy $@
$(ROOTKEYDIR)/layout_0f: $(ROOTKEYDIR)/japan
$(RM) $@; $(LN) $(ROOTKEYDIR)/japan $@
$(ROOTKEYDIR)/layout_10: $(ROOTKEYDIR)/korea
$(RM) $@; $(LN) $(ROOTKEYDIR)/korea $@
$(ROOTKEYDIR)/layout_12: $(ROOTKEYDIR)/netherlands
$(RM) $@; $(LN) $(ROOTKEYDIR)/netherlands $@
$(ROOTKEYDIR)/layout_13: $(ROOTKEYDIR)/norway
$(RM) $@; $(LN) $(ROOTKEYDIR)/norway $@
$(ROOTKEYDIR)/layout_16: $(ROOTKEYDIR)/portugal
$(RM) $@; $(LN) $(ROOTKEYDIR)/portugal $@
$(ROOTKEYDIR)/layout_19: $(ROOTKEYDIR)/spain
$(RM) $@; $(LN) $(ROOTKEYDIR)/spain $@
$(ROOTKEYDIR)/layout_1a: $(ROOTKEYDIR)/sweden
$(RM) $@; $(LN) $(ROOTKEYDIR)/sweden $@
$(ROOTKEYDIR)/layout_1b: $(ROOTKEYDIR)/swiss_french
$(RM) $@; $(LN) $(ROOTKEYDIR)/swiss_french $@
$(ROOTKEYDIR)/layout_1c: $(ROOTKEYDIR)/swiss_german
$(RM) $@; $(LN) $(ROOTKEYDIR)/swiss_german $@
$(ROOTKEYDIR)/layout_1e: $(ROOTKEYDIR)/taiwan
$(RM) $@; $(LN) $(ROOTKEYDIR)/taiwan $@
$(ROOTKEYDIR)/layout_20: $(ROOTKEYDIR)/uk
$(RM) $@; $(LN) $(ROOTKEYDIR)/uk $@
$(ROOTKEYDIR)/layout_21: $(ROOTKEYDIR)/us
$(RM) $@; $(LN) $(ROOTKEYDIR)/us $@
$(ROOTKEYDIR)/layout_18: $(ROOTKEYDIR)/slovakia
$(RM) $@; $(LN) $(ROOTKEYDIR)/slovakia $@
$(ROOTKEYDIR)/layout_100: $(ROOTKEYDIR)/slovenia
$(RM) $@; $(LN) $(ROOTKEYDIR)/slovenia $@
$(ROOTKEYDIR)/layout_101: $(ROOTKEYDIR)/serbiaandmontenegro
$(RM) $@; $(LN) $(ROOTKEYDIR)/serbiaandmontenegro $@
$(ROOTKEYDIR)/layout_102: $(ROOTKEYDIR)/iceland
$(RM) $@; $(LN) $(ROOTKEYDIR)/iceland $@
$(ROOTKEYDIR)/layout_103: $(ROOTKEYDIR)/croatia
$(RM) $@; $(LN) $(ROOTKEYDIR)/croatia $@
$(ROOTKEYDIR)/layout_104: $(ROOTKEYDIR)/bulgaria
$(RM) $@; $(LN) $(ROOTKEYDIR)/bulgaria $@
$(ROOTKEYDIR)/layout_105: $(ROOTKEYDIR)/belarus
$(RM) $@; $(LN) $(ROOTKEYDIR)/belarus $@
$(ROOTKEYDIR)/layout_106: $(ROOTKEYDIR)/maltaus
$(RM) $@; $(LN) $(ROOTKEYDIR)/maltaus $@
$(ROOTKEYDIR)/layout_107: $(ROOTKEYDIR)/maltauk
$(RM) $@; $(LN) $(ROOTKEYDIR)/maltauk $@
$(ROOTKEYDIR)/layout_108: $(ROOTKEYDIR)/albania
$(RM) $@; $(LN) $(ROOTKEYDIR)/albania $@
$(ROOTKEYDIR)/layout_10f: $(ROOTKEYDIR)/japan
$(RM) $@; $(LN) $(ROOTKEYDIR)/japan $@
$(ROOTKEYDIR)/layout_1f: $(ROOTKEYDIR)/turkeyq
$(RM) $@; $(LN) $(ROOTKEYDIR)/turkeyq $@
$(ROOTKEYDIR)/layout_23: $(ROOTKEYDIR)/turkeyf
$(RM) $@; $(LN) $(ROOTKEYDIR)/turkeyf $@
include ../../Makefile.targ