Makefile revision 3988
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner# CDDL HEADER START
832ed3afe9d56def0ba8851d5c9a9b742e619217Trond Norbye# The contents of this file are subject to the terms of the
832ed3afe9d56def0ba8851d5c9a9b742e619217Trond Norbye# Common Development and Distribution License (the "License").
832ed3afe9d56def0ba8851d5c9a9b742e619217Trond Norbye# You may not use this file except in compliance with the License.
832ed3afe9d56def0ba8851d5c9a9b742e619217Trond Norbye# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
832ed3afe9d56def0ba8851d5c9a9b742e619217Trond Norbye# See the License for the specific language governing permissions
832ed3afe9d56def0ba8851d5c9a9b742e619217Trond Norbye# and limitations under the License.
832ed3afe9d56def0ba8851d5c9a9b742e619217Trond Norbye# When distributing Covered Code, include this CDDL HEADER in each
832ed3afe9d56def0ba8851d5c9a9b742e619217Trond Norbye# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
832ed3afe9d56def0ba8851d5c9a9b742e619217Trond Norbye# If applicable, add the following below this CDDL HEADER, with the
832ed3afe9d56def0ba8851d5c9a9b742e619217Trond Norbye# fields enclosed by brackets "[]" replaced with your own identifying
832ed3afe9d56def0ba8851d5c9a9b742e619217Trond Norbye# information: Portions Copyright [yyyy] [name of copyright owner]
832ed3afe9d56def0ba8851d5c9a9b742e619217Trond Norbye# CDDL HEADER END
d7632865cbb23540feb5b66d1c3f8569bbac6c61Knut Anders Hatlen# Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved.
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner# for now, the assumption is we build any directory with a Makefile. This may
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner# not always be the case. If we build a new make-like tool to drive the upper
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner# level build, it may make different decisions and will need to include
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner# appropriate dependency information.
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner# components.mk is auto-generated by the build tools. It populates the
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner# COMPONENT_DIRS macro with a list of all directories in the workspace that
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner# contain a component.
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner @echo "Generating component list..."
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner @$(BASS_O_MATIC) --workspace=$(WS_TOP) --components=paths \
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner | sed -e 's;^$(shell pwd)/;COMPONENT_DIRS += ;g' >$@
832ed3afe9d56def0ba8851d5c9a9b742e619217Trond Norbye# depends.mk is auto-generated by concatenating 'depend.mk' files in each
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner# component directory.
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner @echo "Generating component dependencies..."
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner @cat $(shell $(BASS_O_MATIC) --workspace=$(WS_TOP) --components=paths \
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner | sed -e 's;^$(shell pwd)/;;g' -e 's;$$;/depend.mk;g') >$@ \
14a41f02433890d19b2f871156271e3388cd0845Jens Elknerprep build install publish test: TEMPLATE_ZONE=$(ZONE)
14a41f02433890d19b2f871156271e3388cd0845Jens Elknerprep build install publish test: LOG = >$(WS_LOGS)/$(@F).$(TARGET).log 2>&1
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner# turn off pkglint for the individual component builds.
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner# In order to work around an IPS simultaneous publication issue and to improve
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner# top level build performance, we postpone catalog and index updates until the
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner# end of the build. Individual component builds postpone the updates until
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner# they have published all of their packages.
14a41f02433890d19b2f871156271e3388cd0845Jens Elknerpublish: MAKEFLAGS += DISABLE_IPS_CATALOG_AND_INDEX_UPDATES=yes
$(WS_LOGS):
$(MKDIR) $@
$(WS_REPO):
.profile:
$${incorporation} ; \
$(PKGLINT) \