Makefile revision 4311
904N/A# The contents of this file are subject to the terms of the 904N/A# Common Development and Distribution License (the "License"). 904N/A# You may not use this file except in compliance with the License. 904N/A# See the License for the specific language governing permissions 904N/A# and limitations under the License. 904N/A# When distributing Covered Code, include this CDDL HEADER in each 904N/A# If applicable, add the following below this CDDL HEADER, with the 904N/A# fields enclosed by brackets "[]" replaced with your own identifying 904N/A# information: Portions Copyright [yyyy] [name of copyright owner] 904N/A# Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved. 904N/A# for now, the assumption is we build any directory with a Makefile. This may 904N/A# not always be the case. If we build a new make-like tool to drive the upper 904N/A# level build, it may make different decisions and will need to include 904N/A# appropriate dependency information. 904N/A# COMPONENT_DIRS macro with a list of all directories in the workspace that 904N/A @
echo "Generating component list..." 904N/A |
sed -e
's;^$(shell pwd)/;COMPONENT_DIRS += ;g' >$@
@
echo "Generating component dependencies..." | sed -e 's;^$(shell pwd)/;;g' -e 's;$$;/depend.mk;g') >$@ \
# 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..." $(GSED) -e
'/\S\s\S/d' -e
's/^ //g' -e
'/^\s*$$/d' \
-e
's/^/REQUIRED_PACKAGES += /' | \
@
echo "Installing any missing packages..."# 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. @
echo "Generating pkglint(1) cache from CANONICAL_REPO $(CANONICAL_REPO)..." ( echo "pkglint(1) failed, please see $(WS_LOGS)/naughty-canonical-repo-actions"; \ @
cd $@ &&
echo "$(TARGET) $@" && \
# Turn userland-incorporator warnings into build failures # pkglint all of the published manifests in one batch. @
echo 'pkglinting all package manifests...'