Makefile revision 346
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# CDDL HEADER START
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# The contents of this file are subject to the terms of the
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# Common Development and Distribution License (the "License").
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# You may not use this file except in compliance with the License.
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# See the License for the specific language governing permissions
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# and limitations under the License.
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# When distributing Covered Code, include this CDDL HEADER in each
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# If applicable, add the following below this CDDL HEADER, with the
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# fields enclosed by brackets "[]" replaced with your own identifying
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# information: Portions Copyright [yyyy] [name of copyright owner]
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# CDDL HEADER END
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# for now, the assumption is we build any directory with a Makefile. This may
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# not always be the case. If we build a new make-like tool to drive the upper
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# level build, it may make different decisions and will need to include
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# appropriate dependency information.
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# components.mk is auto-generated by the build tools. It populates the
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# COMPONENT_DIRS macro with a list of all directories in the workspace that
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# contain a component.
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai @echo "Generating component list..."
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai @$(BASS_O_MATIC) --workspace=$(WS_TOP) --components=paths \
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# depends.mk is auto-generated by concatenating 'depend.mk' files in each
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai# component directory.
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai @echo "Generating component dependencies..."
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai @cat $(shell $(BASS_O_MATIC) --workspace=$(WS_TOP) --components=paths \
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai | sed -e 's;^$(shell pwd)/;;g' -e 's;$$;/depend.mk;g') >$@ \
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllaitest: TARGET = test
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllaiprep build install publish test: LOG = >$(WS_LOGS)/$(@F).$(TARGET).log 2>&1
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# turn off pkglint for the individual component builds.
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai @echo "Generating pkglint(1) cache from $(CANONICAL_REPO)..."
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai >$(WS_LOGS)/naughty-canonical-repo-actions 2>&1 ; exit 0)
.profile: