Makefile revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
297be3708069ef31814d6d75c0d71a50a78feb03Mark Andrews# CDDL HEADER START
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# The contents of this file are subject to the terms of the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Common Development and Distribution License (the "License").
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You may not use this file except in compliance with the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# or http://www.opensolaris.org/os/licensing.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# See the License for the specific language governing permissions
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# and limitations under the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
0c6ada0a814f3c5417daa1654129bc2af56ed504Automatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# CDDL HEADER END
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Use is subject to license terms.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
0c6ada0a814f3c5417daa1654129bc2af56ed504Automatic Updater
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude ../Makefile.lib
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsSUBDIRS = help $(MACH)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews$(BUILD64)SUBDIRS += $(MACH64)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMSGSUBDIRS= help
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsall:= TARGET= all
0c6ada0a814f3c5417daa1654129bc2af56ed504Automatic Updaterclean:= TARGET= clean
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsclobber:= TARGET= clobber
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinstall:= TARGET= install
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewslint:= TARGET= lint
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews_msg:= TARGET= _msg
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews.KEEP_STATE:
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsROOTETC = $(ROOT)/etc
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsROOTETCSECURITY = $(ROOTETC)/security
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsEFILES = user_attr
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsEFILESRC = $(EFILES:%=%)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsETCFILES = $(EFILES:%=$(ROOTETC)/%)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsESFILES = auth_attr exec_attr prof_attr policy.conf
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsESSRC = $(ESFILES:%=%)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsETCSECURITYFILES = $(ESFILES:%=$(ROOTETCSECURITY)/%)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
0c6ada0a814f3c5417daa1654129bc2af56ed504Automatic UpdaterMFSTFILES = rbac.xml
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMANIFESTDIR = $(ROOT)/var/svc/manifest/system
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMANIFEST = $(MFSTFILES:%=$(MANIFESTDIR)/%)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews$(MANIFEST) := FILEMODE = 0444
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMETHODFILES = svc-rbac
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMETHODDIR = $(ROOT)/lib/svc/method
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMETHOD = $(METHODFILES:%=$(METHODDIR)/%)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews$(METHOD) := FILEMODE = 0555
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsSCRIPTS = i.rbac r.rbac
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCLASS_SCR_SRC_DIR = $(SRC)/pkgdefs/common_files
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsINSTALL_DIR = $(ROOT)/usr/sadm/install
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
c247e3f281613fabe1af362e9f3157e35ebbe52cMark AndrewsCLASS_SCR_DIR = $(INSTALL_DIR)/scripts
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCLASS_SCR_FILES = $(SCRIPTS:%=$(CLASS_SCR_DIR)/%)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews$(CLASS_SCR_FILES) := FILEMODE = 0555
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsall clean clobber delete install lint package: $(SUBDIRS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews_msg: $(MSGSUBDIRS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinstall: install_data
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinstall_data: $(ETCSECURITYFILES) $(ETCFILES) $(CLASS_SCR_FILES) \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(MANIFESTDIR) $(MANIFEST) $(METHODDIR) $(METHOD)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsATTR_FILES = auth_attr exec_attr prof_attr user_attr
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews${ATTR_FILES}: $$@.txt
0c6ada0a814f3c5417daa1654129bc2af56ed504Automatic Updater > $@
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(ECHO) $@.txt $@ | $(SHELL) ${CLASS_SCR_SRC_DIR}/i.rbac
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews$(ETCSECURITYFILES) $(ETCFILES): $(ETCSECURITY) $(ROOTETCSECURITY)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews$(ETCSECURITY)/%: %
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(INS.file)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews$(ROOTETCSECURITY):
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(INS.dir)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews$(ROOTETCSECURITY)/%: %
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(INS.file)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews$(ROOTETC)/% : %
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(INS.file)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews$(MANIFESTDIR):
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(INS.dir)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews$(MANIFESTDIR)/% : %
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(INS.file)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews$(METHODDIR):
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(INS.dir)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews$(METHODDIR)/% : %
1224c3b69b3d18f7127aa042644936af25a2d679Mark Andrews $(INS.file)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
1224c3b69b3d18f7127aa042644936af25a2d679Mark Andrews$(CLASS_SCR_FILES): $(INSTALL_DIR) $(CLASS_SCR_DIR)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
1224c3b69b3d18f7127aa042644936af25a2d679Mark Andrews$(INSTALL_DIR):
1224c3b69b3d18f7127aa042644936af25a2d679Mark Andrews $(INS.dir)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews$(CLASS_SCR_DIR):
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(INS.dir)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews$(CLASS_SCR_DIR)/%: $(CLASS_SCR_SRC_DIR)/%
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(INS.file)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsclobber clean:
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(RM) $(ATTR_FILES)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews$(SUBDIRS): FRC
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews @cd $@; pwd; $(MAKE) $(TARGET)
c247e3f281613fabe1af362e9f3157e35ebbe52cMark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsFRC:
c247e3f281613fabe1af362e9f3157e35ebbe52cMark Andrews