Makefile revision 286
# 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. # See the License for the specific language governing permissions # and limitations under the License. # When distributing Covered Code, include this CDDL HEADER in each # 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] # Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved. # 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 @
echo "Generating component list..." |
sed -e
's;^$(shell pwd)/;COMPONENT_DIRS += ;g' >$@
@
echo "Generating component dependencies..." | sed -e 's;^$(shell pwd)/;;g' -e 's;$$;/depend.mk;g') >$@ \
# turn off pkglint for the individual component builds. @
(echo "set name=fmri value=pkg:/dummy" | $(PKGLINT) \# $(WS_COMPONENTS) is the home directory for the zone user, so create a profile # to pass a few things on to zone based builds echo "export PATH WS_TOP" >>$@
@
cd $@ &&
echo "$(TARGET) $@" && \
# pkglint all of the published manifests in one batch. @
echo 'pkglinting all package manifests...'