xref: /titanic_41/usr/src/cmd/svc/milestone/Makefile (revision cc1a9a89a73172cc2db053635fab3b1b91691657)
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 2008 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25
26include ../../Makefile.cmd
27
28OWNER = root
29GROUP = sys
30FILEMODE = 0444
31
32BUILTXML= \
33	console-login.xml
34
35FSSVCS= \
36	local-fs.xml \
37	minimal-fs.xml \
38	root-fs.xml \
39	usr-fs.xml
40
41FSMANIFESTS= $(FSSVCS:%=$(ROOTSVCSYSTEMFILESYSTEM)/%)
42
43NETSVCS= \
44	network-initial.xml \
45	network-loopback.xml \
46	network-physical.xml \
47	network-routing-setup.xml \
48	network-service.xml
49
50NETMANIFESTS= $(NETSVCS:%=$(ROOTSVCNETWORK)/%)
51
52MAINMILESTONES= \
53	multi-user-server.xml \
54	multi-user.xml \
55	name-services.xml \
56	network.xml \
57	single-user.xml \
58	sysconfig.xml
59
60MAINMANIFESTS= $(MAINMILESTONES:%=$(ROOTSVCMILESTONE)/%)
61
62SYSDEVSVCS= \
63	devices-local.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-local \
98	fs-local \
99	fs-minimal \
100	fs-root \
101	fs-usr \
102	identity-domain \
103	identity-node \
104	manifest-import \
105	net-loopback \
106	net-init \
107	net-nwam \
108	net-physical \
109	net-routing-setup \
110	net-svc \
111	rmtmpfiles \
112	vtdaemon
113
114$(ROOTSVCMETHOD) := FILEMODE = 0555
115
116all: $(BUILTXML)
117
118install: $(FSMANIFESTS) $(MAINMANIFESTS) $(NETMANIFESTS) $(SYSTEMMANIFESTS) \
119	$(ROOTSVCMETHOD) $(SYSDEVMANIFESTS) $(SYSTEMSVCMANIFESTS) \
120	$(SYSTEMMISCFILES)
121
122check:	$(CHKMANIFEST)
123
124console-login.xml: make-console-login-xml
125	$(SH) ./make-console-login-xml
126
127clobber: clean
128	-$(RM) $(BUILTXML)
129
130$(ROOTSVCMILESTONE)/%: %
131	$(INS.file)
132
133$(ROOTSVCNETWORK)/%: %
134	$(INS.file)
135
136$(ROOTSVCSYSTEM)/%: %
137	$(INS.file)
138
139$(ROOTSVCSYSTEMDEVICE)/%: %
140	$(INS.file)
141
142$(ROOTSVCSYSTEMFILESYSTEM)/%: %
143	$(INS.file)
144
145$(ROOTSVCSYSTEM)/svc/%: %
146	$(INS.file)
147
148$(ROOT)/lib/svc/share/%: %.share
149	$(INS.rename)
150
151clean lint _msg:
152