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