#
# 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.
@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..."
#
# Walk through all of the components echoing the REQUIRED_PACKAGES for each one.
# Pass all output through sed to drop lines with whitespace between words,
# remove whitespace from lines, drop empty lines, and REQUIRED_PACKAGES +=
# to the lines. Pass that through sort -u
#
@echo "Generating list of required packages to build consolidation..."
COMPONENT_HOOK='@echo $$(REQUIRED_PACKAGES:%="%\\n")' | \
-e 's/^/REQUIRED_PACKAGES += /' | \
sort -u >$(@)
@echo "Installing any missing packages..."
test: TARGET = test
# turn off pkglint for the individual component builds.
# In order to work around an IPS simultaneous publication issue and to improve
# top level build performance, we postpone catalog and index updates until the
# end of the build. Individual component builds postpone the updates until
# they have published all of their packages.
COMPONENT_DIRS.nosetup = $(COMPONENT_DIRS:%=%.nosetup)
$(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"
exit 1 ) \
)
else
$(MKDIR) $(WS_LINT_CACHE)
# Turn userland-incorporator warnings into build failures
--repository $(PKG_REPO) \
--consolidation $(CONSOLIDATION) \
$${incorporation} ; \
done
# evaluation packages don't need to be incorporated
# pkglint all of the published manifests in one batch.
@echo 'pkglinting all package manifests...'
$(PKGLINT) \