Makefile revision 38
080575042aba2197b425ebfd52061dea061a9aa1xy# CDDL HEADER START
080575042aba2197b425ebfd52061dea061a9aa1xy# The contents of this file are subject to the terms of the
080575042aba2197b425ebfd52061dea061a9aa1xy# Common Development and Distribution License (the "License").
080575042aba2197b425ebfd52061dea061a9aa1xy# You may not use this file except in compliance with the License.
080575042aba2197b425ebfd52061dea061a9aa1xy# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d5c3073dbbd835e1e9b7dca0c6c770cf3cc20afachenlu chen - Sun Microsystems - Beijing China# or http://www.opensolaris.org/os/licensing.
080575042aba2197b425ebfd52061dea061a9aa1xy# See the License for the specific language governing permissions
080575042aba2197b425ebfd52061dea061a9aa1xy# and limitations under the License.
080575042aba2197b425ebfd52061dea061a9aa1xy# When distributing Covered Code, include this CDDL HEADER in each
080575042aba2197b425ebfd52061dea061a9aa1xy# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
080575042aba2197b425ebfd52061dea061a9aa1xy# If applicable, add the following below this CDDL HEADER, with the
080575042aba2197b425ebfd52061dea061a9aa1xy# fields enclosed by brackets "[]" replaced with your own identifying
080575042aba2197b425ebfd52061dea061a9aa1xy# information: Portions Copyright [yyyy] [name of copyright owner]
080575042aba2197b425ebfd52061dea061a9aa1xy# CDDL HEADER END
d5c3073dbbd835e1e9b7dca0c6c770cf3cc20afachenlu chen - Sun Microsystems - Beijing China# Copyright (c) 2010, Oracle and/or it's affiliates. All rights reserved.
080575042aba2197b425ebfd52061dea061a9aa1xy# for now, the assumption is we build any directory with a Makefile. This may
080575042aba2197b425ebfd52061dea061a9aa1xy# not always be the case. If we build a new make-like tool to drive the upper
080575042aba2197b425ebfd52061dea061a9aa1xy# level build, it may make different decisions and will need to include
080575042aba2197b425ebfd52061dea061a9aa1xy# appropriate dependency information.
080575042aba2197b425ebfd52061dea061a9aa1xy# components.mk is auto-generated by the build tools. It populates the
080575042aba2197b425ebfd52061dea061a9aa1xy# COMPONENT_DIRS macro with a list of all directories in the workspace that
080575042aba2197b425ebfd52061dea061a9aa1xy# contain a component.
080575042aba2197b425ebfd52061dea061a9aa1xy @echo "Generating component list..."
080575042aba2197b425ebfd52061dea061a9aa1xy @$(BASS_O_MATIC) --workspace=$(WS_TOP) --components=paths \
080575042aba2197b425ebfd52061dea061a9aa1xyprep build install publish: LOG = >$(WS_LOGS)/$@.$(TARGET).log 2>&1
080575042aba2197b425ebfd52061dea061a9aa1xydownload prep build install publish install-packages validate: $(COMPONENT_DIRS)
080575042aba2197b425ebfd52061dea061a9aa1xy# $(WS_COMPONENTS) is the home directory for the zone user, so create a profile
080575042aba2197b425ebfd52061dea061a9aa1xy# to pass a few things on to zone based builds
080575042aba2197b425ebfd52061dea061a9aa1xy echo "export PATH WS_TOP" >>$@
080575042aba2197b425ebfd52061dea061a9aa1xy @cd $(@:%.nosetup=%) && echo "$(TARGET) $(@:%.nosetup=%)" && \
080575042aba2197b425ebfd52061dea061a9aa1xy# depends.mk is auto-generated by the build tools, bass-o-matic.py in particular
080575042aba2197b425ebfd52061dea061a9aa1xy @echo "Generating component dependencies..."