7712 mandoc -Tlint does always exit with error code 0
[unleashed.git] / usr / src / cmd / lvm / md_monitord / Makefile
blob33f2dce12f004f17edd2014507632070e2d52357
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 #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
34 PROG= mdmonitord
35 MANIFEST= mdmonitor.xml
36 SVCMETHOD= svc-mdmonitor
38 include ../../Makefile.cmd
39 include ../Makefile.lvm
41 SUBDIRS= $(MACH)
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)
58 MDPO= $(PROG:%=%.po)
59 SVCMETHODPO= $(SVCMETHOD:%=%.po)
60 POFILES= $(MDPO) $(SVCMETHODPO)
61 POFILE= md_monitordp.po
63 ROOTMANIFESTDIR= $(ROOTSVCSYSTEM)
65 $(ROOTSVCMETHOD): $(SVCMETHOD)
67 all := TARGET = all
68 install := TARGET = install
69 clean := TARGET = clean
70 clobber := TARGET = clobber
71 lint := TARGET = lint
73 .KEEP_STATE:
75 all clobber lint: $(SUBDIRS)
77 $(MDPO): $(MSGFILES)
78 $(BUILDPO.msgfiles)
80 $(POFILE): $(POFILES)
81 $(BUILDPO.pofiles)
83 catalog: $(POFILE)
85 check: $(CHKMANIFEST)
87 clean: $(SUBDIRS)
88 $(RM) $(MSGFILES)
90 install: $(SUBDIRS) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
92 $(SUBDIRS): FRC
93 @cd $@; pwd; $(MAKE) $(TARGET)
95 FRC:
97 include ../../Makefile.targ
98 include $(SRC)/Makefile.msg.targ
100 $(MDPO) := POFILE = $(MDPO)