xref: /illumos-gate/usr/src/cmd/svc/milestone/Makefile (revision 0a44ef6d9afbfe052a7e975f55ea0d2954b62a82)
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 2006 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25#ident	"%Z%%M%	%I%	%E% SMI"
26
27include ../../Makefile.cmd
28
29OWNER = root
30GROUP = sys
31FILEMODE = 0444
32
33BUILTXML= \
34	console-login.xml
35
36FSSVCS= \
37	local-fs.xml \
38	minimal-fs.xml \
39	root-fs.xml \
40	usr-fs.xml
41
42FSMANIFESTS= $(FSSVCS:%=$(ROOTSVCSYSTEMFILESYSTEM)/%)
43
44NETSVCS= \
45	network-initial.xml \
46	network-loopback.xml \
47	network-physical.xml \
48	network-routing-setup.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-routing-setup \
108	net-svc \
109	rmtmpfiles
110
111$(ROOTSVCMETHOD) := FILEMODE = 0555
112
113all: $(BUILTXML)
114
115install: $(FSMANIFESTS) $(MAINMANIFESTS) $(NETMANIFESTS) $(SYSTEMMANIFESTS) \
116	$(ROOTSVCMETHOD) $(SYSDEVMANIFESTS) $(SYSTEMSVCMANIFESTS) \
117	$(SYSTEMMISCFILES)
118
119check:	$(CHKMANIFEST)
120
121console-login.xml: make-console-login-xml
122	$(SH) ./make-console-login-xml
123
124clobber: clean
125	-$(RM) $(BUILTXML)
126
127$(ROOTSVCMILESTONE)/%: %
128	$(INS.file)
129
130$(ROOTSVCNETWORK)/%: %
131	$(INS.file)
132
133$(ROOTSVCSYSTEM)/%: %
134	$(INS.file)
135
136$(ROOTSVCSYSTEMDEVICE)/%: %
137	$(INS.file)
138
139$(ROOTSVCSYSTEMFILESYSTEM)/%: %
140	$(INS.file)
141
142$(ROOTSVCSYSTEM)/svc/%: %
143	$(INS.file)
144
145$(ROOT)/lib/svc/share/%: %.share
146	$(INS.rename)
147
148clean lint _msg:
149