1 # 2 # CDDL HEADER START 3 # 4 # The contents of this file are subject to the terms of the 5 # Common Development and Distribution License (the "License"). 6 # You may not use this file except in compliance with the License. 7 # 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 # or http://www.opensolaris.org/os/licensing. 10 # See the License for the specific language governing permissions 11 # and limitations under the License. 12 # 13 # When distributing Covered Code, include this CDDL HEADER in each 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 # If applicable, add the following below this CDDL HEADER, with the 16 # fields enclosed by brackets "[]" replaced with your own identifying 17 # information: Portions Copyright [yyyy] [name of copyright owner] 18 # 19 # CDDL HEADER END 20 # 21 22 # 23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved. 24 # Use is subject to license terms. 25 # 26 # ident "@(#)Makefile 1.9 08/11/21 SMI" 27 # 28 29 WD :sh = pwd 30 31 STF_TOOLS_BUILD = ${WD}/build 32 STF_TOOLS_ETC = ${WD}/etc 33 STF_TOOLS_MAKEFILES = ${WD}/Makefiles 34 35 STF_PKGMODE = 0022 36 37 all := TARGET = install 38 clean := TARGET = clean 39 clobber := TARGET = clobber 40 install := TARGET = install 41 lint := TARGET = lint 42 uninstall := TARGET = uninstall 43 package := TARGET = package 44 unpackage := TARGET = unpackage 45 46 install all clean lint uninstall package unpackage: buildstrap target 47 48 clobber: buildstrap target cleanstrap 49 50 target: 51 ${MAKE} -f Makefile.stf ${TARGET} \ 52 STF_TOOLS_BUILD=${STF_TOOLS_BUILD}\ 53 STF_TOOLS_ETC=${STF_TOOLS_ETC} \ 54 STF_TOOLS_MAKEFILES=${STF_TOOLS_MAKEFILES} 55 56 buildstrap: 57 cd ${STF_TOOLS_BUILD}; ${MAKE} -f Makefile.buildstrap all 58 59 cleanstrap: 60 cd ${STF_TOOLS_BUILD}; ${MAKE} -f Makefile.buildstrap clean 61