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]
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
42 install:= TARGET
= install
44 clobber:= TARGET
= clobber
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
68 all: $(LVMINITPROG
) $(FLASHPREPROG
) $(FLASHPOSTPROG
)
70 install: all .WAIT
$(DIRS
) .WAIT
$(ETCLVMINITPROG
)
72 install: all .WAIT
$(DIRS
) .WAIT
$(ETCLVMINITPROG
) \
73 $(ETCFLASHPREPROG
) $(ETCFLASHPOSTPROG
)
88 $(ETCFLASHPOSTD
)/% : %
94 $(RM
) $(FLASHPREPROG
) $(FLASHPOSTPROG
)