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