xref: /illumos-gate/usr/src/cmd/fm/dicts/Makefile (revision 5c0b3261)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
500d0963fSdilpreet# Common Development and Distribution License (the "License").
600d0963fSdilpreet# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
217c478bd9Sstevel@tonic-gate#
227851b394STarik Soydan# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
23*5c0b3261SGarrett D'Amore# Copryight 2022 Garrett D'Amore
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate
267c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd
277c478bd9Sstevel@tonic-gate
287c478bd9Sstevel@tonic-gatecommon_DCNAMES = \
29724365f7Ssethg	DISK \
307c478bd9Sstevel@tonic-gate	FMD \
31f6e214c7SGavin Maltby	FMNOTIFY \
32ee5416c9Syc	NXGE \
33f6e214c7SGavin Maltby	SMF \
347c478bd9Sstevel@tonic-gate	SUNOS \
35fa9e4066Sahrens	PCI \
3600d0963fSdilpreet	PCIEX \
3788f8b78aSgm	ZFS \
3888f8b78aSgm	SCA500 \
39e5dcf7beSRobert Johnston	SCA1000 \
40b6955755SRobert Johnston	SENSOR \
417851b394STarik Soydan	STORAGE \
4212eb87fbSAlex Wilson	TEST \
4312eb87fbSAlex Wilson	NIC
447c478bd9Sstevel@tonic-gate
457aec1d6eScindii386_DCNAMES = \
4620c794b3Sgavinm	AMD \
4720c794b3Sgavinm	INTEL \
4820c794b3Sgavinm	GMCA
497aec1d6eScindi
507c478bd9Sstevel@tonic-gateDCNAMES = \
517c478bd9Sstevel@tonic-gate	$(common_DCNAMES) \
527c478bd9Sstevel@tonic-gate	$($(MACH)_DCNAMES)
537c478bd9Sstevel@tonic-gate
547c478bd9Sstevel@tonic-gateDCFILES = $(DCNAMES:%=%.dict)
557c478bd9Sstevel@tonic-gatePOFILES = $(DCNAMES:%=%.po)
567c478bd9Sstevel@tonic-gateMOFILES = $(DCNAMES:%=%.mo)
577c478bd9Sstevel@tonic-gate
587c478bd9Sstevel@tonic-gateROOTDCDIR = $(ROOTLIB)/fm/dict
597c478bd9Sstevel@tonic-gateROOTLCDIR = $(ROOTLIB)/locale/C/LC_MESSAGES
607c478bd9Sstevel@tonic-gate
617c478bd9Sstevel@tonic-gateROOTDCFILES = $(DCNAMES:%=$(ROOTDCDIR)/%.dict)
627c478bd9Sstevel@tonic-gateROOTPOFILES = $(DCNAMES:%=$(ROOTLCDIR)/%.po)
637c478bd9Sstevel@tonic-gateROOTMOFILES = $(DCNAMES:%=$(ROOTLCDIR)/%.mo)
647c478bd9Sstevel@tonic-gate
657c478bd9Sstevel@tonic-gateFILEMODE = 0444
66*5c0b3261SGarrett D'Amore$(ROOTPOFILES) := FILEMODE = 0644
677c478bd9Sstevel@tonic-gate
687c478bd9Sstevel@tonic-gateDICTCK = ../scripts/dictck
697c478bd9Sstevel@tonic-gateDICTCKFLAGS = -b ../scripts/buildcode
707c478bd9Sstevel@tonic-gate
717c478bd9Sstevel@tonic-gateall: $(MOFILES)
727c478bd9Sstevel@tonic-gate
73*5c0b3261SGarrett D'Amore_msg: $(ROOTPOFILES)
747c478bd9Sstevel@tonic-gate
757c478bd9Sstevel@tonic-gate$(ROOTDCDIR):
767c478bd9Sstevel@tonic-gate	$(INS.dir)
777c478bd9Sstevel@tonic-gate
787c478bd9Sstevel@tonic-gate$(ROOTLIB)/locale:
797c478bd9Sstevel@tonic-gate	$(INS.dir)
807c478bd9Sstevel@tonic-gate
817c478bd9Sstevel@tonic-gate$(ROOTLIB)/locale/C: $(ROOTLIB)/locale
827c478bd9Sstevel@tonic-gate	$(INS.dir)
837c478bd9Sstevel@tonic-gate
847c478bd9Sstevel@tonic-gate$(ROOTLCDIR): $(ROOTLIB)/locale/C
857c478bd9Sstevel@tonic-gate	$(INS.dir)
867c478bd9Sstevel@tonic-gate
877c478bd9Sstevel@tonic-gate$(ROOTDCDIR)/%: %
887c478bd9Sstevel@tonic-gate	$(INS.file)
897c478bd9Sstevel@tonic-gate
907c478bd9Sstevel@tonic-gate$(ROOTLCDIR)/%: %
917c478bd9Sstevel@tonic-gate	$(INS.file)
927c478bd9Sstevel@tonic-gate
937c478bd9Sstevel@tonic-gate%.mo: %.po
946d6fcbbbSRichard Lowe	$(MSGFMT) -o $@ $<
957c478bd9Sstevel@tonic-gate
967c478bd9Sstevel@tonic-gatelint:
977c478bd9Sstevel@tonic-gate	@for name in $(DCNAMES); do\
987c478bd9Sstevel@tonic-gate		$(DICTCK) $(DICTCKFLAGS) $$name.dict $$name.po;\
997c478bd9Sstevel@tonic-gate	done
1007c478bd9Sstevel@tonic-gate
1017c478bd9Sstevel@tonic-gateclean install_h lint:
1027c478bd9Sstevel@tonic-gate
1037c478bd9Sstevel@tonic-gateclobber:
1047c478bd9Sstevel@tonic-gate	$(RM) $(MOFILES)
1057c478bd9Sstevel@tonic-gate
1067c478bd9Sstevel@tonic-gateinstall: all $(ROOTDCDIR) $(ROOTLCDIR) \
107*5c0b3261SGarrett D'Amore	$(ROOTDCFILES) $(ROOTPOFILES) $(ROOTMOFILES)
108