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