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