Makefile revision f808c858fa61e7769218966759510a8b1190dfcf
12343c067e12be071a68bbb10d1d1c4870696769Tinderbox User#
6c2a76b3e2ccd32c35814b6e0f54da00190749d7Evan Hunt# CDDL HEADER START
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater#
c7fd128f8ea8a527fe27c1b95ab46df7155bc8e4Tinderbox User# The contents of this file are subject to the terms of the
c7fd128f8ea8a527fe27c1b95ab46df7155bc8e4Tinderbox User# Common Development and Distribution License (the "License").
ba9e87b35e561bc7354ce3f4b9685b747b7be507Tinderbox User# You may not use this file except in compliance with the License.
1f9754245cbd5eec2d2a667bb292f62f72386d4bMark Andrews#
59663800d2ec04777dae2791dd92aa563faf94c8Evan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# or http://www.opensolaris.org/os/licensing.
1f9754245cbd5eec2d2a667bb292f62f72386d4bMark Andrews# See the License for the specific language governing permissions
59663800d2ec04777dae2791dd92aa563faf94c8Evan Hunt# and limitations under the License.
1ca2cf024391992fe14b2df7d3ae0f575d074452Evan Hunt#
0726d872f6f36901ea09321df57084614e5bb6faTinderbox User# When distributing Covered Code, include this CDDL HEADER in each
1ca2cf024391992fe14b2df7d3ae0f575d074452Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a2c370ca12bb0360ff7e969474ead3f788c65fffTinderbox User# If applicable, add the following below this CDDL HEADER, with the
8de3f14f1c300c3e1ed99084cc03485b42c92bf1Tinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# CDDL HEADER END
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
2b7254075b883d70852a2757210793603085a0f1Tinderbox User#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Use is subject to license terms.
b91d11bfcc30b96f2c80f3a76d12e3dcc8597a68Mark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# ident "%Z%%M% %I% %E% SMI"
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrewsinclude ../Makefile.lib
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsSUBDIRS = help $(MACH)
415d630b6309922caee8469384a6fab75cf05032Mark Andrews$(BUILD64)SUBDIRS += $(MACH64)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsMSGSUBDIRS= help
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox Userall:= TARGET= all
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewsclean:= TARGET= clean
415d630b6309922caee8469384a6fab75cf05032Mark Andrewsclobber:= TARGET= clobber
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrewsinstall:= TARGET= install
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrewslint:= TARGET= lint
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User_msg:= TARGET= _msg
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
415d630b6309922caee8469384a6fab75cf05032Mark Andrews.KEEP_STATE:
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsROOTETC = $(ROOT)/etc
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark AndrewsROOTETCSECURITY = $(ROOTETC)/security
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User$(ROOTETCSECURITY) := GROUP = sys
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox UserEFILES = user_attr
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsEFILESRC = $(EFILES:%=%)
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntETCFILES = $(EFILES:%=$(ROOTETC)/%)
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews$(ETCFILES) := GROUP = sys
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntESFILES = auth_attr exec_attr prof_attr policy.conf
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsESSRC = $(ESFILES:%=%)
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsETCSECURITYFILES = $(ESFILES:%=$(ROOTETCSECURITY)/%)
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews$(ETCSECURITYFILES) := GROUP = sys
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsSCRIPTS = i.rbac r.rbac
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsCLASS_SCR_SRC_DIR = $(SRC)/pkgdefs/common_files
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntINSTALL_DIR = $(ROOT)/usr/sadm/install
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews$(INSTALL_DIR) := GROUP = bin
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsCLASS_SCR_DIR = $(INSTALL_DIR)/scripts
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews$(CLASS_SCR_DIR) := GROUP = bin
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic UpdaterCLASS_SCR_FILES = $(SCRIPTS:%=$(CLASS_SCR_DIR)/%)
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews$(CLASS_SCR_FILES) := FILEMODE = 0555
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User$(CLASS_SCR_FILES) := GROUP = sys
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsTMPDIR = /tmp
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewsall clean clobber delete install lint package: $(SUBDIRS)
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews_msg: $(MSGSUBDIRS)
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewsinstall: install_data
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewsinstall_data: $(ETCSECURITYFILES) $(ETCFILES) $(CLASS_SCR_FILES)
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsATTR_FILES = auth_attr exec_attr prof_attr user_attr
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews${ATTR_FILES}: $$@.txt
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User $(CP) $@.txt ${TMPDIR}/$@
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews > $@
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox User $(ECHO) ${TMPDIR}/$@ $@ | $(SHELL) ${CLASS_SCR_SRC_DIR}/i.rbac
3ccf87473f7cf6d9faac156df38a935a238f96fdTinderbox User @$(RM) ${TMPDIR}/$@
fec6e13f2d1e69fe1c2b8fac36f732f124cf5398Mark Andrews
b378314925e78f21853a98cec924788ce1822c6cTinderbox User$(ETCSECURITYFILES) $(ETCFILES): $(ETCSECURITY) $(ROOTETCSECURITY)
ebe53509ca55a141131c104b6d722236b606e0efTinderbox User
fec6e13f2d1e69fe1c2b8fac36f732f124cf5398Mark Andrews$(ETCSECURITY)/%: %
415d630b6309922caee8469384a6fab75cf05032Mark Andrews $(INS.file)
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt
415d630b6309922caee8469384a6fab75cf05032Mark Andrews$(ROOTETCSECURITY):
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews $(INS.dir)
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt$(ROOTETCSECURITY)/%: %
7cc0a5d21ef046bfd630c4769943d896a7d7472cTinderbox User $(INS.file)
3ccf87473f7cf6d9faac156df38a935a238f96fdTinderbox User
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews$(ROOTETC)/% : %
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User $(INS.file)
551e6d2414c4f47d58a9bb0b37f206f915a4f5acTinderbox User
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews$(CLASS_SCR_FILES): $(INSTALL_DIR) $(CLASS_SCR_DIR)
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews$(INSTALL_DIR):
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User $(INS.dir)
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews$(CLASS_SCR_DIR):
51aeb0ae19596e99b029cfa933e73b76ebec480aTinderbox User $(INS.dir)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User$(CLASS_SCR_DIR)/%: $(CLASS_SCR_SRC_DIR)/%
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User $(INS.file)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
415d630b6309922caee8469384a6fab75cf05032Mark Andrewsclobber clean:
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson $(RM) $(ATTR_FILES)
415d630b6309922caee8469384a6fab75cf05032Mark Andrews
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews$(SUBDIRS): FRC
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User @cd $@; pwd; $(MAKE) $(TARGET)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsFRC:
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews