Makefile revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4
98N/A#
98N/A# CDDL HEADER START
606N/A#
98N/A# The contents of this file are subject to the terms of the
98N/A# Common Development and Distribution License (the "License").
98N/A# You may not use this file except in compliance with the License.
98N/A#
98N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
98N/A# or http://www.opensolaris.org/os/licensing.
98N/A# See the License for the specific language governing permissions
98N/A# and limitations under the License.
98N/A#
98N/A# When distributing Covered Code, include this CDDL HEADER in each
98N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
98N/A# If applicable, add the following below this CDDL HEADER, with the
98N/A# fields enclosed by brackets "[]" replaced with your own identifying
98N/A# information: Portions Copyright [yyyy] [name of copyright owner]
98N/A#
98N/A# CDDL HEADER END
98N/A#
98N/A#
98N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
98N/A# Use is subject to license terms.
98N/A#
98N/A
98N/Ainclude ../Makefile.lib
98N/A
98N/ASUBDIRS = help $(MACH)
98N/A$(BUILD64)SUBDIRS += $(MACH64)
98N/A
606N/AMSGSUBDIRS= help
98N/A
98N/Aall:= TARGET= all
493N/Aclean:= TARGET= clean
493N/Aclobber:= TARGET= clobber
98N/Ainstall:= TARGET= install
98N/Alint:= TARGET= lint
606N/A_msg:= TARGET= _msg
98N/A
98N/A.KEEP_STATE:
493N/A
493N/AROOTETC = $(ROOT)/etc
98N/AROOTETCSECURITY = $(ROOTETC)/security
98N/A
156N/AEFILES = user_attr
156N/AEFILESRC = $(EFILES:%=%)
493N/AETCFILES = $(EFILES:%=$(ROOTETC)/%)
493N/A
493N/AESFILES = auth_attr exec_attr prof_attr policy.conf
493N/AESSRC = $(ESFILES:%=%)
493N/AETCSECURITYFILES = $(ESFILES:%=$(ROOTETCSECURITY)/%)
493N/A
493N/AMFSTFILES = rbac.xml
98N/AMANIFESTDIR = $(ROOT)/var/svc/manifest/system
98N/AMANIFEST = $(MFSTFILES:%=$(MANIFESTDIR)/%)
98N/A$(MANIFEST) := FILEMODE = 0444
606N/A
606N/AMETHODFILES = svc-rbac
606N/AMETHODDIR = $(ROOT)/lib/svc/method
606N/AMETHOD = $(METHODFILES:%=$(METHODDIR)/%)
606N/A$(METHOD) := FILEMODE = 0555
606N/A
606N/ASCRIPTS = i.rbac r.rbac
606N/ACLASS_SCR_SRC_DIR = $(SRC)/pkgdefs/common_files
606N/AINSTALL_DIR = $(ROOT)/usr/sadm/install
606N/A
606N/ACLASS_SCR_DIR = $(INSTALL_DIR)/scripts
606N/A
606N/ACLASS_SCR_FILES = $(SCRIPTS:%=$(CLASS_SCR_DIR)/%)
606N/A$(CLASS_SCR_FILES) := FILEMODE = 0555
606N/A
606N/Aall clean clobber delete install lint package: $(SUBDIRS)
606N/A_msg: $(MSGSUBDIRS)
606N/A
606N/Ainstall: install_data
606N/A
606N/Ainstall_data: $(ETCSECURITYFILES) $(ETCFILES) $(CLASS_SCR_FILES) \
606N/A $(MANIFESTDIR) $(MANIFEST) $(METHODDIR) $(METHOD)
606N/A
606N/AATTR_FILES = auth_attr exec_attr prof_attr user_attr
606N/A${ATTR_FILES}: $$@.txt
98N/A > $@
493N/A $(ECHO) $@.txt $@ | $(SHELL) ${CLASS_SCR_SRC_DIR}/i.rbac
493N/A
493N/A$(ETCSECURITYFILES) $(ETCFILES): $(ETCSECURITY) $(ROOTETCSECURITY)
98N/A
606N/A$(ETCSECURITY)/%: %
606N/A $(INS.file)
606N/A
98N/A$(ROOTETCSECURITY):
606N/A $(INS.dir)
606N/A
98N/A$(ROOTETCSECURITY)/%: %
606N/A $(INS.file)
606N/A
98N/A$(ROOTETC)/% : %
493N/A $(INS.file)
493N/A
98N/A$(MANIFESTDIR):
493N/A $(INS.dir)
493N/A
493N/A$(MANIFESTDIR)/% : %
493N/A $(INS.file)
98N/A
606N/A$(METHODDIR):
606N/A $(INS.dir)
606N/A
493N/A$(METHODDIR)/% : %
606N/A $(INS.file)
606N/A
606N/A$(CLASS_SCR_FILES): $(INSTALL_DIR) $(CLASS_SCR_DIR)
$(INSTALL_DIR):
$(INS.dir)
$(CLASS_SCR_DIR):
$(INS.dir)
$(CLASS_SCR_DIR)/%: $(CLASS_SCR_SRC_DIR)/%
$(INS.file)
clobber clean:
$(RM) $(ATTR_FILES)
$(SUBDIRS): FRC
@cd $@; pwd; $(MAKE) $(TARGET)
FRC: