xref: /titanic_41/usr/src/cmd/svc/milestone/Makefile (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gate#
2*7c478bd9Sstevel@tonic-gate# CDDL HEADER START
3*7c478bd9Sstevel@tonic-gate#
4*7c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5*7c478bd9Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only
6*7c478bd9Sstevel@tonic-gate# (the "License").  You may not use this file except in compliance
7*7c478bd9Sstevel@tonic-gate# with the License.
8*7c478bd9Sstevel@tonic-gate#
9*7c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*7c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
11*7c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
12*7c478bd9Sstevel@tonic-gate# and limitations under the License.
13*7c478bd9Sstevel@tonic-gate#
14*7c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
15*7c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*7c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
17*7c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
18*7c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
19*7c478bd9Sstevel@tonic-gate#
20*7c478bd9Sstevel@tonic-gate# CDDL HEADER END
21*7c478bd9Sstevel@tonic-gate#
22*7c478bd9Sstevel@tonic-gate#
23*7c478bd9Sstevel@tonic-gate# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24*7c478bd9Sstevel@tonic-gate# Use is subject to license terms.
25*7c478bd9Sstevel@tonic-gate#
26*7c478bd9Sstevel@tonic-gate#ident	"%Z%%M%	%I%	%E% SMI"
27*7c478bd9Sstevel@tonic-gate
28*7c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd
29*7c478bd9Sstevel@tonic-gate
30*7c478bd9Sstevel@tonic-gateOWNER = root
31*7c478bd9Sstevel@tonic-gateGROUP = sys
32*7c478bd9Sstevel@tonic-gateFILEMODE = 0444
33*7c478bd9Sstevel@tonic-gate
34*7c478bd9Sstevel@tonic-gateBUILTXML= \
35*7c478bd9Sstevel@tonic-gate	console-login.xml
36*7c478bd9Sstevel@tonic-gate
37*7c478bd9Sstevel@tonic-gateFSSVCS= \
38*7c478bd9Sstevel@tonic-gate	boot-archive.xml \
39*7c478bd9Sstevel@tonic-gate	local-fs.xml \
40*7c478bd9Sstevel@tonic-gate	minimal-fs.xml \
41*7c478bd9Sstevel@tonic-gate	root-fs.xml \
42*7c478bd9Sstevel@tonic-gate	usr-fs.xml
43*7c478bd9Sstevel@tonic-gate
44*7c478bd9Sstevel@tonic-gateFSMANIFESTS= $(FSSVCS:%=$(ROOTSVCSYSTEMFILESYSTEM)/%)
45*7c478bd9Sstevel@tonic-gate
46*7c478bd9Sstevel@tonic-gateNETSVCS= \
47*7c478bd9Sstevel@tonic-gate	datalink.xml \
48*7c478bd9Sstevel@tonic-gate	datalink-init.xml \
49*7c478bd9Sstevel@tonic-gate	aggregation.xml \
50*7c478bd9Sstevel@tonic-gate	network-initial.xml \
51*7c478bd9Sstevel@tonic-gate	network-loopback.xml \
52*7c478bd9Sstevel@tonic-gate	network-physical.xml \
53*7c478bd9Sstevel@tonic-gate	network-service.xml
54*7c478bd9Sstevel@tonic-gate
55*7c478bd9Sstevel@tonic-gateNETMANIFESTS= $(NETSVCS:%=$(ROOTSVCNETWORK)/%)
56*7c478bd9Sstevel@tonic-gate
57*7c478bd9Sstevel@tonic-gateMAINMILESTONES= \
58*7c478bd9Sstevel@tonic-gate	multi-user-server.xml \
59*7c478bd9Sstevel@tonic-gate	multi-user.xml \
60*7c478bd9Sstevel@tonic-gate	name-services.xml \
61*7c478bd9Sstevel@tonic-gate	network.xml \
62*7c478bd9Sstevel@tonic-gate	single-user.xml \
63*7c478bd9Sstevel@tonic-gate	sysconfig.xml
64*7c478bd9Sstevel@tonic-gate
65*7c478bd9Sstevel@tonic-gateMAINMANIFESTS= $(MAINMILESTONES:%=$(ROOTSVCMILESTONE)/%)
66*7c478bd9Sstevel@tonic-gate
67*7c478bd9Sstevel@tonic-gateSYSDEVSVCS= \
68*7c478bd9Sstevel@tonic-gate	devices-local.xml
69*7c478bd9Sstevel@tonic-gate
70*7c478bd9Sstevel@tonic-gateSYSDEVMANIFESTS= $(SYSDEVSVCS:%=$(ROOTSVCSYSTEMDEVICE)/%)
71*7c478bd9Sstevel@tonic-gate
72*7c478bd9Sstevel@tonic-gateSYSTEMSVCS= \
73*7c478bd9Sstevel@tonic-gate	console-login.xml \
74*7c478bd9Sstevel@tonic-gate	identity.xml \
75*7c478bd9Sstevel@tonic-gate	manifest-import.xml \
76*7c478bd9Sstevel@tonic-gate	rmtmpfiles.xml
77*7c478bd9Sstevel@tonic-gate
78*7c478bd9Sstevel@tonic-gateSYSTEMMANIFESTS = $(SYSTEMSVCS:%=$(ROOTSVCSYSTEM)/%)
79*7c478bd9Sstevel@tonic-gate
80*7c478bd9Sstevel@tonic-gateSYSTEMSVCSVCS= \
81*7c478bd9Sstevel@tonic-gate	restarter.xml
82*7c478bd9Sstevel@tonic-gate
83*7c478bd9Sstevel@tonic-gateSYSTEMSVCMANIFESTS= $(SYSTEMSVCSVCS:%=$(ROOTSVCSYSTEM)/svc/%)
84*7c478bd9Sstevel@tonic-gate
85*7c478bd9Sstevel@tonic-gateMISCFILES= \
86*7c478bd9Sstevel@tonic-gate	README.share
87*7c478bd9Sstevel@tonic-gate
88*7c478bd9Sstevel@tonic-gateSYSTEMMISCFILES = $(MISCFILES:%.share=$(ROOT)/lib/svc/share/%)
89*7c478bd9Sstevel@tonic-gate
90*7c478bd9Sstevel@tonic-gate#
91*7c478bd9Sstevel@tonic-gate# MANIFEST is used solely in the construction of the check target.
92*7c478bd9Sstevel@tonic-gate#
93*7c478bd9Sstevel@tonic-gateMANIFEST= $(FSSVCS) $(NETSVCS) $(MAINMILESTONES) $(SYSTEMSVCS) \
94*7c478bd9Sstevel@tonic-gate	$(SYSDEVSVCS) $(SYSTEMSVCSVCS)
95*7c478bd9Sstevel@tonic-gate
96*7c478bd9Sstevel@tonic-gateSVCMETHOD=\
97*7c478bd9Sstevel@tonic-gate	aggregation \
98*7c478bd9Sstevel@tonic-gate	boot-archive \
99*7c478bd9Sstevel@tonic-gate	console-login \
100*7c478bd9Sstevel@tonic-gate	datalink \
101*7c478bd9Sstevel@tonic-gate	datalink-init \
102*7c478bd9Sstevel@tonic-gate	devices-local \
103*7c478bd9Sstevel@tonic-gate	fs-local \
104*7c478bd9Sstevel@tonic-gate	fs-minimal \
105*7c478bd9Sstevel@tonic-gate	fs-root \
106*7c478bd9Sstevel@tonic-gate	fs-usr \
107*7c478bd9Sstevel@tonic-gate	identity-domain \
108*7c478bd9Sstevel@tonic-gate	identity-node \
109*7c478bd9Sstevel@tonic-gate	manifest-import \
110*7c478bd9Sstevel@tonic-gate	net-loopback \
111*7c478bd9Sstevel@tonic-gate	net-init \
112*7c478bd9Sstevel@tonic-gate	net-physical \
113*7c478bd9Sstevel@tonic-gate	net-svc \
114*7c478bd9Sstevel@tonic-gate	rmtmpfiles
115*7c478bd9Sstevel@tonic-gate
116*7c478bd9Sstevel@tonic-gate$(ROOTSVCMETHOD) := FILEMODE = 0555
117*7c478bd9Sstevel@tonic-gate
118*7c478bd9Sstevel@tonic-gateall: $(BUILTXML)
119*7c478bd9Sstevel@tonic-gate
120*7c478bd9Sstevel@tonic-gateinstall: $(FSMANIFESTS) $(MAINMANIFESTS) $(NETMANIFESTS) $(SYSTEMMANIFESTS) \
121*7c478bd9Sstevel@tonic-gate	$(ROOTSVCMETHOD) $(SYSDEVMANIFESTS) $(SYSTEMSVCMANIFESTS) \
122*7c478bd9Sstevel@tonic-gate	$(SYSTEMMISCFILES)
123*7c478bd9Sstevel@tonic-gate
124*7c478bd9Sstevel@tonic-gatecheck:	$(CHKMANIFEST)
125*7c478bd9Sstevel@tonic-gate
126*7c478bd9Sstevel@tonic-gateconsole-login.xml: make-console-login-xml
127*7c478bd9Sstevel@tonic-gate	$(SH) ./make-console-login-xml
128*7c478bd9Sstevel@tonic-gate
129*7c478bd9Sstevel@tonic-gateclobber: clean
130*7c478bd9Sstevel@tonic-gate	-$(RM) $(BUILTXML)
131*7c478bd9Sstevel@tonic-gate
132*7c478bd9Sstevel@tonic-gate$(ROOTSVCMILESTONE)/%: %
133*7c478bd9Sstevel@tonic-gate	$(INS.file)
134*7c478bd9Sstevel@tonic-gate
135*7c478bd9Sstevel@tonic-gate$(ROOTSVCNETWORK)/%: %
136*7c478bd9Sstevel@tonic-gate	$(INS.file)
137*7c478bd9Sstevel@tonic-gate
138*7c478bd9Sstevel@tonic-gate$(ROOTSVCSYSTEM)/%: %
139*7c478bd9Sstevel@tonic-gate	$(INS.file)
140*7c478bd9Sstevel@tonic-gate
141*7c478bd9Sstevel@tonic-gate$(ROOTSVCSYSTEMDEVICE)/%: %
142*7c478bd9Sstevel@tonic-gate	$(INS.file)
143*7c478bd9Sstevel@tonic-gate
144*7c478bd9Sstevel@tonic-gate$(ROOTSVCSYSTEMFILESYSTEM)/%: %
145*7c478bd9Sstevel@tonic-gate	$(INS.file)
146*7c478bd9Sstevel@tonic-gate
147*7c478bd9Sstevel@tonic-gate$(ROOTSVCSYSTEM)/svc/%: %
148*7c478bd9Sstevel@tonic-gate	$(INS.file)
149*7c478bd9Sstevel@tonic-gate
150*7c478bd9Sstevel@tonic-gate$(ROOT)/lib/svc/share/%: %.share
151*7c478bd9Sstevel@tonic-gate	$(INS.rename)
152*7c478bd9Sstevel@tonic-gate
153*7c478bd9Sstevel@tonic-gateclean lint _msg:
154