xref: /illumos-gate/usr/src/cmd/svc/milestone/Makefile (revision 67ce1dada345581246cd990d73516418f321a793)
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
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-nwam \
107	net-physical \
108	net-routing-setup \
109	net-svc \
110	rmtmpfiles \
111	vtdaemon
112
113$(ROOTSVCMETHOD) := FILEMODE = 0555
114
115all: $(BUILTXML)
116
117install: $(FSMANIFESTS) $(MAINMANIFESTS) $(NETMANIFESTS) $(SYSTEMMANIFESTS) \
118	$(ROOTSVCMETHOD) $(SYSDEVMANIFESTS) $(SYSTEMSVCMANIFESTS) \
119	$(SYSTEMMISCFILES)
120
121check:	$(CHKMANIFEST)
122
123console-login.xml: make-console-login-xml
124	$(SH) ./make-console-login-xml
125
126clobber: clean
127	-$(RM) $(BUILTXML)
128
129$(ROOTSVCMILESTONE)/%: %
130	$(INS.file)
131
132$(ROOTSVCNETWORK)/%: %
133	$(INS.file)
134
135$(ROOTSVCSYSTEM)/%: %
136	$(INS.file)
137
138$(ROOTSVCSYSTEMDEVICE)/%: %
139	$(INS.file)
140
141$(ROOTSVCSYSTEMFILESYSTEM)/%: %
142	$(INS.file)
143
144$(ROOTSVCSYSTEM)/svc/%: %
145	$(INS.file)
146
147$(ROOT)/lib/svc/share/%: %.share
148	$(INS.rename)
149
150clean lint _msg:
151