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