move 32-bit libs to lib/i386 subdirs & 64-bit libs to lib/
[unleashed.git] / usr / src / cmd / fm / dicts / Makefile
blob6b60b429757869d109836d2bcb8520b375b13c01
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
22 # Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
25 include ../../Makefile.cmd
27 common_DCNAMES = \
28 DISK \
29 FMD \
30 FMNOTIFY \
31 NXGE \
32 SMF \
33 SUNOS \
34 PCI \
35 PCIEX \
36 ZFS \
37 SCA500 \
38 SCA1000 \
39 SENSOR \
40 STORAGE \
41 TEST
43 i386_DCNAMES = \
44 AMD \
45 INTEL \
46 GMCA
48 sparc_DCNAMES = \
49 SCF \
50 SUN4 \
51 SUN4U \
52 SUN4V
54 DCNAMES = \
55 $(common_DCNAMES) \
56 $($(MACH)_DCNAMES)
58 ALLDCNAMES = \
59 $(common_DCNAMES) \
60 $(sparc_DCNAMES) \
61 $(i386_DCNAMES)
63 DCFILES = $(DCNAMES:%=%.dict)
64 POFILES = $(DCNAMES:%=%.po)
65 MOFILES = $(DCNAMES:%=%.mo)
67 ROOTDCDIR = $(ROOTLIB64)/fm/dict
68 ROOTLCDIR = $(ROOTLIB64)/locale/C/LC_MESSAGES
70 ROOTDCFILES = $(DCNAMES:%=$(ROOTDCDIR)/%.dict)
71 ROOTPOFILES = $(DCNAMES:%=$(ROOTLCDIR)/%.po)
72 ROOTMOFILES = $(DCNAMES:%=$(ROOTLCDIR)/%.mo)
73 ROOTALLPOFILES = $(ALLDCNAMES:%=$(ROOTLCDIR)/%.po)
75 FILEMODE = 0444
76 $(ROOTALLPOFILES) := FILEMODE = 0644
78 DICTCK = ../scripts/dictck
79 DICTCKFLAGS = -b ../scripts/buildcode
81 all: $(MOFILES)
83 _msg: $(ROOTALLPOFILES)
85 $(ROOTDCDIR):
86 $(INS.dir)
88 $(ROOTLIB64)/locale:
89 $(INS.dir)
91 $(ROOTLIB64)/locale/C: $(ROOTLIB64)/locale
92 $(INS.dir)
94 $(ROOTLCDIR): $(ROOTLIB64)/locale/C
95 $(INS.dir)
97 $(ROOTDCDIR)/%: %
98 $(INS.file)
100 $(ROOTLCDIR)/%: %
101 $(INS.file)
103 %.mo: %.po
104 $(MSGFMT) -o $@ $<
106 clean install_h:
108 clobber:
109 $(RM) $(MOFILES)
111 install: all $(ROOTDCDIR) $(ROOTLCDIR) \
112 $(ROOTDCFILES) $(ROOTALLPOFILES) $(ROOTMOFILES)