Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
0N/A#
2362N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License, Version 1.0 only
0N/A# (the "License"). You may not use this file except in compliance
0N/A# with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2362N/A#
2362N/A# CDDL HEADER END
2362N/A#
0N/A#
0N/A# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
0N/A# Use is subject to license terms.
0N/A#
0N/A# lib/libsecdb/Makefile
0N/A#
0N/A#ident "%Z%%M% %I% %E% SMI"
0N/A#
0N/A
0N/Ainclude ../Makefile.lib
0N/A
0N/ASUBDIRS= spec .WAIT help $(MACH) $(BUILD64) $(MACH64)
0N/AMSGSUBDIRS= help
0N/A
0N/Aall:= TARGET= all
0N/Aclean:= TARGET= clean
0N/Aclobber:= TARGET= clobber
0N/Ainstall:= TARGET= install
0N/Alint:= TARGET= lint
0N/A_msg:= TARGET= _msg
0N/A
0N/A.KEEP_STATE:
0N/A
0N/AROOTETC = $(ROOT)/etc
0N/AROOTETCSECURITY = $(ROOTETC)/security
0N/A$(ROOTETCSECURITY) := GROUP = sys
0N/A
0N/AEFILES = user_attr
0N/AEFILESRC = $(EFILES:%=%)
0N/AETCFILES = $(EFILES:%=$(ROOTETC)/%)
0N/A$(ETCFILES) := GROUP = sys
0N/A
0N/AESFILES = auth_attr exec_attr prof_attr policy.conf
0N/AESSRC = $(ESFILES:%=%)
0N/AETCSECURITYFILES = $(ESFILES:%=$(ROOTETCSECURITY)/%)
0N/A$(ETCSECURITYFILES) := GROUP = sys
0N/A
0N/ASCRIPTS = i.rbac r.rbac
0N/ACLASS_SCR_SRC_DIR = $(SRC)/pkgdefs/common_files
INSTALL_DIR = $(ROOT)/usr/sadm/install
$(INSTALL_DIR) := GROUP = bin
CLASS_SCR_DIR = $(INSTALL_DIR)/scripts
$(CLASS_SCR_DIR) := GROUP = bin
CLASS_SCR_FILES = $(SCRIPTS:%=$(CLASS_SCR_DIR)/%)
$(CLASS_SCR_FILES) := FILEMODE = 0555
$(CLASS_SCR_FILES) := GROUP = sys
TMPDIR = /tmp
all clean clobber delete install lint package: $(SUBDIRS)
_msg: $(MSGSUBDIRS)
install: install_data
install_data: $(ETCSECURITYFILES) $(ETCFILES) $(CLASS_SCR_FILES)
ATTR_FILES = auth_attr exec_attr prof_attr user_attr
${ATTR_FILES}: $$@.txt
$(CP) $@.txt ${TMPDIR}/$@
> $@
$(ECHO) ${TMPDIR}/$@ $@ | $(SHELL) ${CLASS_SCR_SRC_DIR}/i.rbac
@$(RM) ${TMPDIR}/$@
$(ETCSECURITYFILES) $(ETCFILES): $(ETCSECURITY) $(ROOTETCSECURITY)
$(ETCSECURITY)/%: %
$(INS.file)
$(ROOTETCSECURITY):
$(INS.dir)
$(ROOTETCSECURITY)/%: %
$(INS.file)
$(ROOTETC)/% : %
$(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)
spec help $(MACH) $(MACH64) : FRC
@cd $@; pwd; $(MAKE) $(TARGET)
FRC: