7712 mandoc -Tlint does always exit with error code 0
[unleashed.git] / usr / src / cmd / lvm / etc / Makefile
blobec076d7635778102563d605a1238cbf1dae047eb
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
21 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
22 # Use is subject to license terms.
24 # Makefile for logical volume management
27 # cmd/lvm/etc/Makefile
30 include ../../Makefile.cmd
31 include ../Makefile.lvm
33 FLASHPRESRC= svm.save.sh
34 FLASHPOSTSRC= svm.cleanup.sh
35 FLASHPREPROG= $(FLASHPRESRC:%.sh=%)
36 FLASHPOSTPROG= $(FLASHPOSTSRC:%.sh=%)
37 LVMINITPROG= md.cf md.ctlrmap md.tab mddb.cf lock runtime.cf devpath
41 all:= TARGET= all
42 install:= TARGET= install
43 clean:= TARGET= clean
44 clobber:= TARGET= clobber
45 lint:= TARGET= lint
47 ETCLVMD= $(ROOTETC)/lvm
48 ETCFLASHD= $(ROOTETC)/flash
49 ETCFLASHPRED= $(ROOTETC)/flash/predeployment
50 ETCFLASHPOSTD= $(ROOTETC)/flash/postdeployment
52 DIRS= $(ETCLVMD) $(ETCFLASHD) $(ETCFLASHPRED) $(ETCFLASHPOSTD)
54 ETCLVMINITPROG= $(LVMINITPROG:%=$(ETCLVMD)/%)
55 ETCFLASHPREPROG= $(FLASHPREPROG:%=$(ETCFLASHPRED)/%)
56 ETCFLASHPOSTPROG= $(FLASHPOSTPROG:%=$(ETCFLASHPOSTD)/%)
58 $(ETCLVMD) := DIRMODE= 755
59 $(ETCFLASHD) := DIRMODE= 755
60 $(ETCFLASHPRED) := DIRMODE= 755
61 $(ETCFLASHPOSTD) := DIRMODE= 755
62 $(ETCLVMINITPROG) := FILEMODE= 0644
63 $(ETCFLASHPREPROG) := FILEMODE= 0744
64 $(ETCFLASHPOSTPROG) := FILEMODE= 0744
66 .KEEP_STATE:
68 all: $(LVMINITPROG) $(FLASHPREPROG) $(FLASHPOSTPROG)
70 install: all .WAIT $(DIRS) .WAIT $(ETCLVMINITPROG)
72 install: all .WAIT $(DIRS) .WAIT $(ETCLVMINITPROG) \
73 $(ETCFLASHPREPROG) $(ETCFLASHPOSTPROG)
75 cstyle:
77 lint:
79 $(DIRS):
80 $(INS.dir)
82 $(ETCLVMD)/% : %
83 $(INS.file)
85 $(ETCFLASHPRED)/% : %
86 $(INS.file)
88 $(ETCFLASHPOSTD)/% : %
89 $(INS.file)
91 clean:
93 clobber: clean
94 $(RM) $(FLASHPREPROG) $(FLASHPOSTPROG)