0N/A#
0N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
873N/A# CDDL HEADER END
0N/A#
0N/A#
0N/A#pragma ident "%Z%%M% %I% %E% SMI"
0N/A#
0N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
4088N/A# Use is subject to license terms.
5382N/A#
0N/A
1182N/A#
0N/A# Makefile for logical volume management
0N/A#
0N/A#
0N/A# cmd/lvm/md_monitord/Makefile
0N/A
0N/APROG= mdmonitord
0N/AMANIFEST= mdmonitor.xml
0N/ASVCMETHOD= svc-mdmonitor
0N/A
0N/Ainclude ../../Makefile.cmd
0N/Ainclude ../Makefile.lvm
0N/A
560N/ASUBDIRS= $(MACH)
4802N/A
0N/ASRCS= probedev.c md_monitord.c
0N/A
0N/ACLOBBERFILES += $(SVCMETHOD)
4802N/A
560N/A#
0N/A# i18n: For catalog we need to put messages from $(SRCS) and $(SVCMETHOD).sh
4802N/A# into "`basename $PWD`p.po" = md_monitordp.po = $(POFILE) (that's what
0N/A# ../Makefile expects). We'll use $(BUILDPO.pofiles) to build $(POFILE) from
560N/A# $(MDPO) and $(SVCMETHODPO), and we'll use $(BUILDPO.msgfiles) to build
4802N/A# $(MDPO) from $(SRCS). The catch is that $(BUILDPO.msgfiles) is defined to
560N/A# produce $(POFILE). Fortunately we can conditionally define POFILE = MDPO
0N/A# when building MDPO. make complains when this conditional definition is
0N/A# before we include Makefile.msg.targ, so it must lie at the end.
0N/A#
560N/AMSGFILES= $(SRCS:%.c=%.i)
560N/AMDPO= $(PROG:%=%.po)
560N/ASVCMETHODPO= $(SVCMETHOD:%=%.po)
560N/APOFILES= $(MDPO) $(SVCMETHODPO)
560N/APOFILE= md_monitordp.po
560N/A
560N/AROOTMANIFESTDIR= $(ROOTSVCSYSTEM)
4802N/A
560N/A$(ROOTSVCMETHOD): $(SVCMETHOD)
560N/A
4802N/Aall := TARGET = all
560N/Ainstall := TARGET = install
560N/Aclean := TARGET = clean
560N/Aclobber := TARGET = clobber
560N/Alint := TARGET = lint
560N/A
560N/A.KEEP_STATE:
560N/A
560N/Aall clobber lint: $(SUBDIRS)
560N/A
560N/A$(MDPO): $(MSGFILES)
560N/A $(BUILDPO.msgfiles)
0N/A
0N/A$(POFILE): $(POFILES)
0N/A $(BUILDPO.pofiles)
0N/A
1367N/Acatalog: $(POFILE)
0N/A
0N/Acheck: $(CHKMANIFEST)
4312N/A
4312N/Aclean: $(SUBDIRS)
0N/A $(RM) $(MSGFILES)
0N/A
0N/Ainstall: $(SUBDIRS) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
0N/A
0N/A$(SUBDIRS): FRC
0N/A @cd $@; pwd; $(MAKE) $(TARGET)
0N/A
560N/AFRC:
4312N/A
0N/Ainclude ../../Makefile.targ
4312N/Ainclude $(SRC)/Makefile.msg.targ
560N/A
0N/A$(MDPO) := POFILE = $(MDPO)
4312N/A