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