Home | History | Annotate | Download | only in svc
      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 
     28 include ../Makefile.cmd
     29 
     30 SUBDIR_CMD=	lsvcrun mfstscan prophist svcadm svccfg svcprop svcs
     31 SUBDIR_DAEMON=	configd startd
     32 SUBDIR_REPO=	milestone profile seed
     33 SUBDIR_MISC=	shell
     34 SUBDIRS=	$(SUBDIR_CMD) $(SUBDIR_DAEMON) $(SUBDIR_REPO) $(SUBDIR_MISC)
     35 
     36 all :=		TARGET = all
     37 install :=	TARGET = install
     38 clean :=	TARGET = clean
     39 clobber :=	TARGET = clobber
     40 lint :=		TARGET = lint
     41 _msg :=		TARGET = _msg
     42 
     43 .KEEP_STATE:
     44 
     45 #
     46 # Definitions for DTDs
     47 #
     48 DTDS =		dtd/service_bundle.dtd.1
     49 XMLDIR =	$(ROOT)/usr/share/lib/xml
     50 ROOTDTDS =	$(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 
     60 CLASSACTIONS = i.manifest r.manifest
     61 ROOTCLASSACTIONS = $(CLASSACTIONS:%=$(ROOT)/usr/sadm/install/scripts/%)
     62 
     63 install: $(ROOTDTDS) $(ROOTCLASSACTIONS)
     64 
     65 all install lint clean clobber: $(SUBDIRS)
     66 
     67 _msg: $(SUBDIR_CMD) startd
     68 
     69 seed: 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 
     80 FRC:
     81