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