xref: /titanic_50/usr/src/cmd/svc/milestone/Makefile (revision 0f5cc0e1bee31c69c160a9cf7ffdff5fac4f8e6d)
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 (the "License").
6# You may not use this file except in compliance with the License.
7#
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.
12#
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]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25
26include ../../Makefile.cmd
27
28FILEMODE = 0444
29
30BUILTXML= \
31	console-login.xml
32
33FSSVCS= \
34	local-fs.xml \
35	minimal-fs.xml \
36	root-fs.xml \
37	usr-fs.xml
38
39FSMANIFESTS= $(FSSVCS:%=$(ROOTSVCSYSTEMFILESYSTEM)/%)
40
41NETSVCS= \
42	network-initial.xml \
43	network-iptun.xml \
44	network-ipqos.xml \
45	network-location.xml \
46	network-loopback.xml \
47	network-netcfg.xml \
48	network-netmask.xml \
49	network-netcfg.xml \
50	network-physical.xml \
51	network-routing-setup.xml \
52	network-service.xml
53
54NETMANIFESTS= $(NETSVCS:%=$(ROOTSVCNETWORK)/%)
55
56MAINMILESTONES= \
57	multi-user-server.xml \
58	multi-user.xml \
59	name-services.xml \
60	network.xml \
61	single-user.xml \
62	sysconfig.xml
63
64MAINMANIFESTS= $(MAINMILESTONES:%=$(ROOTSVCMILESTONE)/%)
65
66SYSDEVSVCS= \
67	devices-local.xml \
68	devices-audio.xml
69
70SYSDEVMANIFESTS= $(SYSDEVSVCS:%=$(ROOTSVCSYSTEMDEVICE)/%)
71
72SYSTEMSVCS= \
73	boot-archive.xml \
74	console-login.xml \
75	identity.xml \
76	manifest-import.xml \
77	rmtmpfiles.xml	\
78	vtdaemon.xml
79
80SYSTEMMANIFESTS = $(SYSTEMSVCS:%=$(ROOTSVCSYSTEM)/%)
81
82SYSTEMSVCSVCS= \
83	restarter.xml \
84	global.xml
85
86SYSTEMSVCMANIFESTS= $(SYSTEMSVCSVCS:%=$(ROOTSVCSYSTEM)/svc/%)
87
88MISCFILES= \
89	README.share
90
91SYSTEMMISCFILES = $(MISCFILES:%.share=$(ROOT)/lib/svc/share/%)
92
93#
94# MANIFEST is used solely in the construction of the check target.
95#
96MANIFEST= $(FSSVCS) $(NETSVCS) $(MAINMILESTONES) $(SYSTEMSVCS) \
97	$(SYSDEVSVCS) $(SYSTEMSVCSVCS)
98
99SVCMETHOD=\
100	boot-archive \
101	console-login \
102	devices-audio \
103	devices-local \
104	fs-local \
105	fs-minimal \
106	fs-root \
107	fs-usr \
108	identity-domain \
109	identity-node \
110	manifest-import \
111	net-loc \
112	net-loopback \
113	net-init \
114	net-iptun \
115	net-ipqos \
116	net-netmask \
117	net-nwam \
118	net-physical \
119	net-routing-setup \
120	net-svc \
121	rmtmpfiles \
122	vtdaemon
123
124$(ROOTSVCMETHOD) := FILEMODE = 0555
125
126all: $(BUILTXML)
127
128install: $(FSMANIFESTS) $(MAINMANIFESTS) $(NETMANIFESTS) $(SYSTEMMANIFESTS) \
129	$(ROOTSVCMETHOD) $(SYSDEVMANIFESTS) $(SYSTEMSVCMANIFESTS) \
130	$(SYSTEMMISCFILES)
131
132check:	$(CHKMANIFEST)
133
134console-login.xml: make-console-login-xml
135	$(SH) ./make-console-login-xml
136
137clobber: clean
138	-$(RM) $(BUILTXML)
139
140$(ROOTSVCMILESTONE)/%: %
141	$(INS.file)
142
143$(ROOTSVCNETWORK)/%: %
144	$(INS.file)
145
146$(ROOTSVCSYSTEM)/%: %
147	$(INS.file)
148
149$(ROOTSVCSYSTEMDEVICE)/%: %
150	$(INS.file)
151
152$(ROOTSVCSYSTEMFILESYSTEM)/%: %
153	$(INS.file)
154
155$(ROOTSVCSYSTEM)/svc/%: %
156	$(INS.file)
157
158$(ROOT)/lib/svc/share/%: %.share
159	$(INS.rename)
160
161clean lint _msg:
162