xref: /titanic_50/usr/src/cmd/svc/milestone/Makefile (revision 3ae945c326c1fc078149f2c8b11fac0cc8f6d1d6)
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 2009 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-loopback.xml \
45	network-physical.xml \
46	network-routing-setup.xml \
47	network-service.xml
48
49NETMANIFESTS= $(NETSVCS:%=$(ROOTSVCNETWORK)/%)
50
51MAINMILESTONES= \
52	multi-user-server.xml \
53	multi-user.xml \
54	name-services.xml \
55	network.xml \
56	single-user.xml \
57	sysconfig.xml
58
59MAINMANIFESTS= $(MAINMILESTONES:%=$(ROOTSVCMILESTONE)/%)
60
61SYSDEVSVCS= \
62	devices-local.xml \
63	devices-audio.xml
64
65SYSDEVMANIFESTS= $(SYSDEVSVCS:%=$(ROOTSVCSYSTEMDEVICE)/%)
66
67SYSTEMSVCS= \
68	boot-archive.xml \
69	console-login.xml \
70	identity.xml \
71	manifest-import.xml \
72	rmtmpfiles.xml	\
73	vtdaemon.xml
74
75SYSTEMMANIFESTS = $(SYSTEMSVCS:%=$(ROOTSVCSYSTEM)/%)
76
77SYSTEMSVCSVCS= \
78	restarter.xml \
79	global.xml
80
81SYSTEMSVCMANIFESTS= $(SYSTEMSVCSVCS:%=$(ROOTSVCSYSTEM)/svc/%)
82
83MISCFILES= \
84	README.share
85
86SYSTEMMISCFILES = $(MISCFILES:%.share=$(ROOT)/lib/svc/share/%)
87
88#
89# MANIFEST is used solely in the construction of the check target.
90#
91MANIFEST= $(FSSVCS) $(NETSVCS) $(MAINMILESTONES) $(SYSTEMSVCS) \
92	$(SYSDEVSVCS) $(SYSTEMSVCSVCS)
93
94SVCMETHOD=\
95	boot-archive \
96	console-login \
97	devices-audio \
98	devices-local \
99	fs-local \
100	fs-minimal \
101	fs-root \
102	fs-usr \
103	identity-domain \
104	identity-node \
105	manifest-import \
106	net-loopback \
107	net-init \
108	net-iptun \
109	net-nwam \
110	net-physical \
111	net-routing-setup \
112	net-svc \
113	rmtmpfiles \
114	vtdaemon
115
116$(ROOTSVCMETHOD) := FILEMODE = 0555
117
118all: $(BUILTXML)
119
120install: $(FSMANIFESTS) $(MAINMANIFESTS) $(NETMANIFESTS) $(SYSTEMMANIFESTS) \
121	$(ROOTSVCMETHOD) $(SYSDEVMANIFESTS) $(SYSTEMSVCMANIFESTS) \
122	$(SYSTEMMISCFILES)
123
124check:	$(CHKMANIFEST)
125
126console-login.xml: make-console-login-xml
127	$(SH) ./make-console-login-xml
128
129clobber: clean
130	-$(RM) $(BUILTXML)
131
132$(ROOTSVCMILESTONE)/%: %
133	$(INS.file)
134
135$(ROOTSVCNETWORK)/%: %
136	$(INS.file)
137
138$(ROOTSVCSYSTEM)/%: %
139	$(INS.file)
140
141$(ROOTSVCSYSTEMDEVICE)/%: %
142	$(INS.file)
143
144$(ROOTSVCSYSTEMFILESYSTEM)/%: %
145	$(INS.file)
146
147$(ROOTSVCSYSTEM)/svc/%: %
148	$(INS.file)
149
150$(ROOT)/lib/svc/share/%: %.share
151	$(INS.rename)
152
153clean lint _msg:
154