xref: /titanic_41/usr/src/cmd/lvm/etc/Makefile (revision 7c2fbfb345896881c631598ee3852ce9ce33fb07)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23#pragma ident	"%Z%%M%	%I%	%E% SMI"
24#
25# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
26# Use is subject to license terms.
27#
28# Makefile for logical volume management
29#
30#
31# cmd/lvm/etc/Makefile
32
33
34include ../../Makefile.cmd
35include ../Makefile.lvm
36
37FLASHPRESRC= svm.save.sh
38FLASHPOSTSRC= svm.cleanup.sh
39FLASHPREPROG= $(FLASHPRESRC:%.sh=%)
40FLASHPOSTPROG= $(FLASHPOSTSRC:%.sh=%)
41LVMINITPROG= md.cf md.ctlrmap md.tab mddb.cf lock runtime.cf devpath
42#
43#
44
45all:=           TARGET= all
46install:=       TARGET= install
47clean:=         TARGET= clean
48clobber:=       TARGET= clobber
49lint:=          TARGET= lint
50
51ETCLVMD= $(ROOTETC)/lvm
52ETCFLASHD=	$(ROOTETC)/flash
53ETCFLASHPRED=	$(ROOTETC)/flash/predeployment
54ETCFLASHPOSTD=	$(ROOTETC)/flash/postdeployment
55
56DIRS=	$(ETCLVMD) $(ETCFLASHD) $(ETCFLASHPRED) $(ETCFLASHPOSTD)
57
58ETCLVMINITPROG= $(LVMINITPROG:%=$(ETCLVMD)/%)
59ETCFLASHPREPROG= $(FLASHPREPROG:%=$(ETCFLASHPRED)/%)
60ETCFLASHPOSTPROG= $(FLASHPOSTPROG:%=$(ETCFLASHPOSTD)/%)
61
62$(ETCLVMD) :=	DIRMODE=	755
63$(ETCLVMD) :=	OWNER=          root
64$(ETCLVMD) :=	GROUP=          sys
65$(ETCFLASHD) :=	DIRMODE=	755
66$(ETCFLASHD) :=	OWNER=          root
67$(ETCFLASHD) :=	GROUP=          sys
68$(ETCFLASHPRED) :=	DIRMODE=	755
69$(ETCFLASHPRED) :=	OWNER=          root
70$(ETCFLASHPRED) :=	GROUP=          sys
71$(ETCFLASHPOSTD) :=	DIRMODE=	755
72$(ETCFLASHPOSTD) :=	OWNER=          root
73$(ETCFLASHPOSTD) :=	GROUP=          sys
74$(ETCLVMINITPROG) :=	FILEMODE=       0644
75$(ETCLVMINITPROG) :=	OWNER=          root
76$(ETCLVMINITPROG) :=	GROUP=          sys
77$(ETCFLASHPREPROG) :=	FILEMODE=       0744
78$(ETCFLASHPREPROG) :=	OWNER=          root
79$(ETCFLASHPREPROG) :=	GROUP=          sys
80$(ETCFLASHPOSTPROG) :=	FILEMODE=       0744
81$(ETCFLASHPOSTPROG) :=	OWNER=          root
82$(ETCFLASHPOSTPROG) :=	GROUP=          sys
83
84.KEEP_STATE:
85
86all: $(LVMINITPROG) $(FLASHPREPROG) $(FLASHPOSTPROG)
87
88install: all .WAIT $(DIRS) .WAIT $(ETCLVMINITPROG)
89
90install: all .WAIT $(DIRS) .WAIT $(ETCLVMINITPROG) \
91	$(ETCFLASHPREPROG) $(ETCFLASHPOSTPROG)
92
93cstyle:
94
95lint:
96
97$(DIRS):
98	$(INS.dir)
99
100$(ETCLVMD)/% : %
101	$(INS.file)
102
103$(ETCFLASHPRED)/% : %
104	$(INS.file)
105
106$(ETCFLASHPOSTD)/% : %
107	$(INS.file)
108
109clean:
110
111clobber: clean
112	$(RM) $(FLASHPREPROG) $(FLASHPOSTPROG)
113