Makefile revision 903
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# for now, the assumption is we build any directory with a Makefile. This may
# not always be the case. If we build a new make-like tool to drive the upper
# level build, it may make different decisions and will need to include
# appropriate dependency information.
# components.mk is auto-generated by the build tools. It populates the
# COMPONENT_DIRS macro with a list of all directories in the workspace that
# contain a component.
components.mk: # Makefile # $(WS_TOP)/components
@echo "Generating component list..."
| sed -e 's;^$(shell pwd)/;COMPONENT_DIRS += ;g' >$@
# depends.mk is auto-generated by concatenating 'depend.mk' files in each
# component directory.
@echo "Generating component dependencies..."
test: TARGET = test
# turn off pkglint for the individual component builds.
COMPONENT_DIRS.nosetup = $(COMPONENT_DIRS:%=%.nosetup)
$(WS_LOGS):
$(MKDIR) $@
$(WS_REPO):
DUMMYPKG += "set pkg.summary=dummy\n"
DUMMYPKG += "set org.opensolaris.consolidation=userland\n"
DUMMYPKG += "set info.classification=org.opensolaris.category.2008:System/Core"
$(WS_LINT_CACHE): $(WS_LOGS)
else
$(MKDIR) $(WS_LINT_CACHE)
# $(WS_COMPONENTS) is the home directory for the zone user, so create a profile
# to pass a few things on to zone based builds
.profile:
echo "export PATH WS_TOP" >>$@
$(BASS_O_MATIC) $(TEMPLATE_ZONE:%=--template-zone %) \
-p pkg:/consolidation/$(CONSOLIDATION)/$(CONSOLIDATION)-incorporation@0.$(OS_VERSION),$(BUILD_VERSION) \
# pkglint all of the published manifests in one batch.
@echo 'pkglinting all package manifests...'
$(BASS_O_MATIC) $(TEMPLATE_ZONE:%=--template-zone %) \