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]
22 #pragma ident "%Z%%M% %I% %E% SMI"
24 # Copyright 2006 Sun Microsystems, Inc. All rights reserved.
25 # Use is subject to license terms.
29 # Makefile for logical volume management
32 # cmd/lvm/md_monitord/Makefile
35 MANIFEST
= mdmonitor.xml
36 SVCMETHOD
= svc-mdmonitor
38 include ..
/..
/Makefile.cmd
39 include ..
/Makefile.lvm
43 SRCS
= probedev.c md_monitord.c
45 CLOBBERFILES
+= $(SVCMETHOD
)
48 # i18n: For catalog we need to put messages from $(SRCS) and $(SVCMETHOD).sh
49 # into "`basename $PWD`p.po" = md_monitordp.po = $(POFILE) (that's what
50 # ../Makefile expects). We'll use $(BUILDPO.pofiles) to build $(POFILE) from
51 # $(MDPO) and $(SVCMETHODPO), and we'll use $(BUILDPO.msgfiles) to build
52 # $(MDPO) from $(SRCS). The catch is that $(BUILDPO.msgfiles) is defined to
53 # produce $(POFILE). Fortunately we can conditionally define POFILE = MDPO
54 # when building MDPO. make complains when this conditional definition is
55 # before we include Makefile.msg.targ, so it must lie at the end.
57 MSGFILES
= $(SRCS
:%.c
=%.i
)
59 SVCMETHODPO
= $(SVCMETHOD
:%=%.po
)
60 POFILES
= $(MDPO
) $(SVCMETHODPO
)
61 POFILE
= md_monitordp.po
63 ROOTMANIFESTDIR
= $(ROOTSVCSYSTEM
)
65 $(ROOTSVCMETHOD
): $(SVCMETHOD
)
68 install := TARGET
= install
69 clean := TARGET
= clean
70 clobber := TARGET
= clobber
75 all clobber lint
: $(SUBDIRS
)
90 install: $(SUBDIRS
) $(ROOTMANIFEST
) $(ROOTSVCMETHOD
)
93 @cd
$@
; pwd
; $(MAKE
) $(TARGET
)
97 include ..
/..
/Makefile.targ
98 include $(SRC
)/Makefile.msg.targ
100 $(MDPO
) := POFILE
= $(MDPO
)