xref: /titanic_51/usr/src/cmd/svc/milestone/Makefile (revision 8eea8e29cc4374d1ee24c25a07f45af132db3499)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26#ident	"%Z%%M%	%I%	%E% SMI"
27
28include ../../Makefile.cmd
29
30OWNER = root
31GROUP = sys
32FILEMODE = 0444
33
34BUILTXML= \
35	console-login.xml
36
37FSSVCS= \
38	boot-archive.xml \
39	local-fs.xml \
40	minimal-fs.xml \
41	root-fs.xml \
42	usr-fs.xml
43
44FSMANIFESTS= $(FSSVCS:%=$(ROOTSVCSYSTEMFILESYSTEM)/%)
45
46NETSVCS= \
47	datalink.xml \
48	datalink-init.xml \
49	aggregation.xml \
50	network-initial.xml \
51	network-loopback.xml \
52	network-physical.xml \
53	network-service.xml
54
55NETMANIFESTS= $(NETSVCS:%=$(ROOTSVCNETWORK)/%)
56
57MAINMILESTONES= \
58	multi-user-server.xml \
59	multi-user.xml \
60	name-services.xml \
61	network.xml \
62	single-user.xml \
63	sysconfig.xml
64
65MAINMANIFESTS= $(MAINMILESTONES:%=$(ROOTSVCMILESTONE)/%)
66
67SYSDEVSVCS= \
68	devices-local.xml
69
70SYSDEVMANIFESTS= $(SYSDEVSVCS:%=$(ROOTSVCSYSTEMDEVICE)/%)
71
72SYSTEMSVCS= \
73	console-login.xml \
74	identity.xml \
75	manifest-import.xml \
76	rmtmpfiles.xml
77
78SYSTEMMANIFESTS = $(SYSTEMSVCS:%=$(ROOTSVCSYSTEM)/%)
79
80SYSTEMSVCSVCS= \
81	restarter.xml
82
83SYSTEMSVCMANIFESTS= $(SYSTEMSVCSVCS:%=$(ROOTSVCSYSTEM)/svc/%)
84
85MISCFILES= \
86	README.share
87
88SYSTEMMISCFILES = $(MISCFILES:%.share=$(ROOT)/lib/svc/share/%)
89
90#
91# MANIFEST is used solely in the construction of the check target.
92#
93MANIFEST= $(FSSVCS) $(NETSVCS) $(MAINMILESTONES) $(SYSTEMSVCS) \
94	$(SYSDEVSVCS) $(SYSTEMSVCSVCS)
95
96SVCMETHOD=\
97	aggregation \
98	boot-archive \
99	console-login \
100	datalink \
101	datalink-init \
102	devices-local \
103	fs-local \
104	fs-minimal \
105	fs-root \
106	fs-usr \
107	identity-domain \
108	identity-node \
109	manifest-import \
110	net-loopback \
111	net-init \
112	net-physical \
113	net-svc \
114	rmtmpfiles
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