xref: /titanic_51/usr/src/cmd/svc/milestone/Makefile (revision cfb7311ca709ca6f4d930977c7498455556b5312)
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	early-manifest-import.xml \
76	identity.xml \
77	manifest-import.xml \
78	rmtmpfiles.xml	\
79	vtdaemon.xml
80
81SYSTEMMANIFESTS = $(SYSTEMSVCS:%=$(ROOTSVCSYSTEM)/%)
82
83SYSTEMSVCSVCS= \
84	restarter.xml \
85	global.xml
86
87SYSTEMSVCMANIFESTS= $(SYSTEMSVCSVCS:%=$(ROOTSVCSYSTEM)/svc/%)
88
89MISCFILES= \
90	README.share
91
92SYSTEMMISCFILES = $(MISCFILES:%.share=$(ROOT)/lib/svc/share/%)
93
94#
95# MANIFEST is used solely in the construction of the check target.
96#
97MANIFEST= $(FSSVCS) $(NETSVCS) $(MAINMILESTONES) $(SYSTEMSVCS) \
98	$(SYSDEVSVCS) $(SYSTEMSVCSVCS)
99
100SVCMETHOD=\
101	boot-archive \
102	console-login \
103	devices-audio \
104	devices-local \
105	fs-local \
106	fs-minimal \
107	fs-root \
108	fs-usr \
109	identity-domain \
110	identity-node \
111	manifest-import \
112	net-loc \
113	net-loopback \
114	net-init \
115	net-iptun \
116	net-ipqos \
117	net-netmask \
118	net-nwam \
119	net-physical \
120	net-routing-setup \
121	net-svc \
122	rmtmpfiles \
123	vtdaemon
124
125$(ROOTSVCMETHOD) := FILEMODE = 0555
126
127all: $(BUILTXML)
128
129install: $(FSMANIFESTS) $(MAINMANIFESTS) $(NETMANIFESTS) $(SYSTEMMANIFESTS) \
130	$(ROOTSVCMETHOD) $(SYSDEVMANIFESTS) $(SYSTEMSVCMANIFESTS) \
131	$(SYSTEMMISCFILES)
132
133check:	$(CHKMANIFEST)
134
135console-login.xml: make-console-login-xml
136	$(SH) ./make-console-login-xml
137
138clobber: clean
139	-$(RM) $(BUILTXML)
140
141$(ROOTSVCMILESTONE)/%: %
142	$(INS.file)
143
144$(ROOTSVCNETWORK)/%: %
145	$(INS.file)
146
147$(ROOTSVCSYSTEM)/%: %
148	$(INS.file)
149
150$(ROOTSVCSYSTEMDEVICE)/%: %
151	$(INS.file)
152
153$(ROOTSVCSYSTEMFILESYSTEM)/%: %
154	$(INS.file)
155
156$(ROOTSVCSYSTEM)/svc/%: %
157	$(INS.file)
158
159$(ROOT)/lib/svc/share/%: %.share
160	$(INS.rename)
161
162clean lint _msg:
163