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 30SUBDIR_CMD= lsvcrun mfstscan prophist svcadm svccfg svcprop svcs 31SUBDIR_DAEMON= configd startd 32SUBDIR_REPO= milestone profile seed 33SUBDIR_MISC= shell 34SUBDIRS= $(SUBDIR_CMD) $(SUBDIR_DAEMON) $(SUBDIR_REPO) $(SUBDIR_MISC) 35 36all := TARGET = all 37install := TARGET = install 38clean := TARGET = clean 39clobber := TARGET = clobber 40lint := TARGET = lint 41_msg := TARGET = _msg 42 43.KEEP_STATE: 44 45# 46# Definitions for DTDs 47# 48DTDS = dtd/service_bundle.dtd.1 49XMLDIR = $(ROOT)/usr/share/lib/xml 50ROOTDTDS = $(DTDS:%=$(XMLDIR)/%) 51 52$(ROOTDTDS) := FILEMODE = 444 53$(ROOTDTDS) := OWNER = root 54$(ROOTDTDS) := GROUP = bin 55 56# 57# Definitions for class action scripts 58# 59 60CLASSACTIONS = i.manifest r.manifest 61ROOTCLASSACTIONS = $(CLASSACTIONS:%=$(ROOT)/usr/sadm/install/scripts/%) 62 63install: $(ROOTDTDS) $(ROOTCLASSACTIONS) 64 65all install lint clean clobber: $(SUBDIRS) 66 67_msg: $(SUBDIR_CMD) startd 68 69seed: svccfg configd 70 71$(SUBDIRS): FRC 72 @cd $@; pwd; $(MAKE) $(MFLAGS) $(TARGET) 73 74$(XMLDIR)/%: % 75 $(INS.file) 76 77$(ROOT)/usr/sadm/install/scripts/%: $(SRC)/pkgdefs/common_files/% 78 $(INS.file) 79 80FRC: 81