xref: /illumos-gate/usr/src/cmd/svc/milestone/Makefile (revision 7932179448259e425d93162dedd251930575d83e)
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 (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
23#
24
25include ../../Makefile.cmd
26
27FILEMODE = 0444
28
29BUILTXML= \
30	console-login.xml
31
32FSSVCS= \
33	local-fs.xml \
34	minimal-fs.xml \
35	root-fs.xml \
36	usr-fs.xml
37
38FSMANIFESTS= $(FSSVCS:%=$(ROOTSVCSYSTEMFILESYSTEM)/%)
39
40NETSVCS= \
41	network-initial.xml \
42	network-install.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-install \
116	net-iptun \
117	net-ipqos \
118	net-netmask \
119	net-nwam \
120	net-physical \
121	net-routing-setup \
122	net-svc \
123	rmtmpfiles \
124	vtdaemon
125
126$(ROOTSVCMETHOD) := FILEMODE = 0555
127
128all: $(BUILTXML)
129
130install: $(FSMANIFESTS) $(MAINMANIFESTS) $(NETMANIFESTS) $(SYSTEMMANIFESTS) \
131	$(ROOTSVCMETHOD) $(SYSDEVMANIFESTS) $(SYSTEMSVCMANIFESTS) \
132	$(SYSTEMMISCFILES)
133
134check:	$(CHKMANIFEST)
135
136console-login.xml: make-console-login-xml
137	$(SH) ./make-console-login-xml
138
139clobber: clean
140	-$(RM) $(BUILTXML)
141
142$(ROOTSVCMILESTONE)/%: %
143	$(INS.file)
144
145$(ROOTSVCNETWORK)/%: %
146	$(INS.file)
147
148$(ROOTSVCSYSTEM)/%: %
149	$(INS.file)
150
151$(ROOTSVCSYSTEMDEVICE)/%: %
152	$(INS.file)
153
154$(ROOTSVCSYSTEMFILESYSTEM)/%: %
155	$(INS.file)
156
157$(ROOTSVCSYSTEM)/svc/%: %
158	$(INS.file)
159
160$(ROOT)/lib/svc/share/%: %.share
161	$(INS.rename)
162
163clean lint _msg:
164