xref: /onnv-gate/usr/src/cmd/svc/Makefile (revision 11996:91b62f7b8186)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
58823STruong.Q.Nguyen@Sun.COM# Common Development and Distribution License (the "License").
68823STruong.Q.Nguyen@Sun.COM# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
210Sstevel@tonic-gate#
22*11996SThomas.Whitten@Sun.COM# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
230Sstevel@tonic-gate# Use is subject to license terms.
240Sstevel@tonic-gate#
250Sstevel@tonic-gate
260Sstevel@tonic-gateinclude ../Makefile.cmd
270Sstevel@tonic-gate
28*11996SThomas.Whitten@Sun.COMSUBDIR_CMD=	lsvcrun mfstscan servinfo svcadm svccfg svcprop svcs
290Sstevel@tonic-gateSUBDIR_DAEMON=	configd startd
300Sstevel@tonic-gateSUBDIR_REPO=	milestone profile seed
310Sstevel@tonic-gateSUBDIR_MISC=	shell
320Sstevel@tonic-gateSUBDIRS=	$(SUBDIR_CMD) $(SUBDIR_DAEMON) $(SUBDIR_REPO) $(SUBDIR_MISC)
330Sstevel@tonic-gate
340Sstevel@tonic-gateall :=		TARGET = all
350Sstevel@tonic-gateinstall :=	TARGET = install
360Sstevel@tonic-gateclean :=	TARGET = clean
370Sstevel@tonic-gateclobber :=	TARGET = clobber
380Sstevel@tonic-gatelint :=		TARGET = lint
390Sstevel@tonic-gate_msg :=		TARGET = _msg
400Sstevel@tonic-gate
410Sstevel@tonic-gate.KEEP_STATE:
420Sstevel@tonic-gate
430Sstevel@tonic-gate#
440Sstevel@tonic-gate# Definitions for DTDs
450Sstevel@tonic-gate#
460Sstevel@tonic-gateDTDS =		dtd/service_bundle.dtd.1
470Sstevel@tonic-gateXMLDIR =	$(ROOT)/usr/share/lib/xml
480Sstevel@tonic-gateROOTDTDS =	$(DTDS:%=$(XMLDIR)/%)
490Sstevel@tonic-gate
500Sstevel@tonic-gate$(ROOTDTDS) :=	FILEMODE = 444
510Sstevel@tonic-gate
520Sstevel@tonic-gate#
530Sstevel@tonic-gate# Definitions for class action scripts
540Sstevel@tonic-gate#
550Sstevel@tonic-gate
560Sstevel@tonic-gateCLASSACTIONS = i.manifest r.manifest
570Sstevel@tonic-gateROOTCLASSACTIONS = $(CLASSACTIONS:%=$(ROOT)/usr/sadm/install/scripts/%)
580Sstevel@tonic-gate
590Sstevel@tonic-gateinstall: $(ROOTDTDS) $(ROOTCLASSACTIONS)
600Sstevel@tonic-gate
610Sstevel@tonic-gateall install lint clean clobber: $(SUBDIRS)
620Sstevel@tonic-gate
630Sstevel@tonic-gate_msg: $(SUBDIR_CMD) startd
640Sstevel@tonic-gate
650Sstevel@tonic-gateseed: svccfg configd
660Sstevel@tonic-gate
670Sstevel@tonic-gate$(SUBDIRS): FRC
680Sstevel@tonic-gate	@cd $@; pwd; $(MAKE) $(MFLAGS) $(TARGET)
690Sstevel@tonic-gate
700Sstevel@tonic-gate$(XMLDIR)/%: %
710Sstevel@tonic-gate	$(INS.file)
720Sstevel@tonic-gate
7311838SLiane.Praza@Sun.COM$(ROOT)/usr/sadm/install/scripts/%: common/%
740Sstevel@tonic-gate	$(INS.file)
750Sstevel@tonic-gate
760Sstevel@tonic-gateFRC:
77