Makefile revision 46d4d53123a9d9aa4e380cc03aace03835579f78
7a7fa095a483e8b652af9f00e5169f62c84f09b9miklosh# CDDL HEADER START
7a7fa095a483e8b652af9f00e5169f62c84f09b9miklosh# The contents of this file are subject to the terms of the
7a7fa095a483e8b652af9f00e5169f62c84f09b9miklosh# Common Development and Distribution License (the "License").
7a7fa095a483e8b652af9f00e5169f62c84f09b9miklosh# You may not use this file except in compliance with the License.
7a7fa095a483e8b652af9f00e5169f62c84f09b9miklosh# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7a7fa095a483e8b652af9f00e5169f62c84f09b9miklosh# See the License for the specific language governing permissions
7a7fa095a483e8b652af9f00e5169f62c84f09b9miklosh# and limitations under the License.
7a7fa095a483e8b652af9f00e5169f62c84f09b9miklosh# When distributing Covered Code, include this CDDL HEADER in each
7a7fa095a483e8b652af9f00e5169f62c84f09b9miklosh# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7a7fa095a483e8b652af9f00e5169f62c84f09b9miklosh# If applicable, add the following below this CDDL HEADER, with the
7a7fa095a483e8b652af9f00e5169f62c84f09b9miklosh# fields enclosed by brackets "[]" replaced with your own identifying
7a7fa095a483e8b652af9f00e5169f62c84f09b9miklosh# information: Portions Copyright [yyyy] [name of copyright owner]
7a7fa095a483e8b652af9f00e5169f62c84f09b9miklosh# CDDL HEADER END
7a7fa095a483e8b652af9f00e5169f62c84f09b9miklosh# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
7a7fa095a483e8b652af9f00e5169f62c84f09b9miklosh# Use is subject to license terms.
7a7fa095a483e8b652af9f00e5169f62c84f09b9miklosh# ident "%Z%%M% %I% %E% SMI"
7a7fa095a483e8b652af9f00e5169f62c84f09b9miklosh then echo "sparc sparcv9"; \
7a7fa095a483e8b652af9f00e5169f62c84f09b9miklosh then echo "i386 amd64"; \
7a7fa095a483e8b652af9f00e5169f62c84f09b9miklosh else echo "unknown"; \
3711b3e25395437ee0a09dbbb2a76d999c4ef322miklosh# Package dirs are directories which specifically
7a7fa095a483e8b652af9f00e5169f62c84f09b9miklosh# have a 'package' target. This target is used to key
7a7fa095a483e8b652af9f00e5169f62c84f09b9miklosh# off of whether a system build is performed
7a7fa095a483e8b652af9f00e5169f62c84f09b9miklosh# or a SUNWonld build.
7a7fa095a483e8b652af9f00e5169f62c84f09b9miklosh then echo sparc; \
7a7fa095a483e8b652af9f00e5169f62c84f09b9miklosh echo "unknown"; \
7a7fa095a483e8b652af9f00e5169f62c84f09b9miklosh# invoke `package' to build this package from scratch. It will
7a7fa095a483e8b652af9f00e5169f62c84f09b9miklosh# perform make install in the directories that contains components
7a7fa095a483e8b652af9f00e5169f62c84f09b9miklosh# that this package is dependent upon
7a7fa095a483e8b652af9f00e5169f62c84f09b9miklosh @/bin/time $(MAKE) package_build 2>&1 | tee $(BUILDLOG)
7a7fa095a483e8b652af9f00e5169f62c84f09b9miklosh @ echo "===BUILD COMPLETED checking for warnings...==="
7a7fa095a483e8b652af9f00e5169f62c84f09b9miklosh @ grep -i "warning:" $(BUILDLOG) | grep -v PSTAMP | cat
7a7fa095a483e8b652af9f00e5169f62c84f09b9miklosh @ echo "==================done========================="
7a7fa095a483e8b652af9f00e5169f62c84f09b9mikloshpackage_build: package_dep .WAIT package_chkmsg .WAIT install
7a7fa095a483e8b652af9f00e5169f62c84f09b9miklosh @ cd ../tools; pwd; $(MAKE) proto && ./proto $(RELEASE)