setup.py.mk revision 2
140N/A#
140N/A# CDDL HEADER START
140N/A#
140N/A# The contents of this file are subject to the terms of the
140N/A# Common Development and Distribution License (the "License").
140N/A# You may not use this file except in compliance with the License.
140N/A#
140N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
140N/A# or http://www.opensolaris.org/os/licensing.
140N/A# See the License for the specific language governing permissions
140N/A# and limitations under the License.
140N/A#
140N/A# When distributing Covered Code, include this CDDL HEADER in each
140N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
140N/A# If applicable, add the following below this CDDL HEADER, with the
140N/A# fields enclosed by brackets "[]" replaced with your own identifying
140N/A# information: Portions Copyright [yyyy] [name of copyright owner]
140N/A#
140N/A# CDDL HEADER END
140N/A#
710N/A# Copyright (c) 2010, Oracle and/or it's affiliates. All rights reserved.
140N/A#
140N/A
140N/A$(COMPONENT_SRC)/build-32/.built: BITS=32
140N/A$(COMPONENT_SRC)/build-64/.built: BITS=64
710N/A$(COMPONENT_SRC)/build-32/.installed: BITS=32
618N/A$(COMPONENT_SRC)/build-64/.installed: BITS=64
140N/A
140N/A
710N/A# build the configured source
710N/A$(COMPONENT_SRC)/build-%/.built: $(COMPONENT_SRC)/.prep
140N/A $(RM) -r $(@D) ; $(MKDIR) $(@D)
140N/A $(COMPONENT_PRE_BUILD_ACTION)
140N/A (cd $(COMPONENT_SRC) ; env - $(PYTHON_ENV) $(PYTHON.$(BITS)) ./setup.py build --build-temp $(@D:$(COMPONENT_SRC)/%=%))
140N/A $(COMPONENT_POST_BUILD_ACTION)
140N/A $(TOUCH) $@
140N/A
140N/A# install the built source into a prototype area
140N/A$(COMPONENT_SRC)/build-%/.installed: $(COMPONENT_SRC)/build-%/.built
140N/A $(COMPONENT_PRE_INSTALL_ACTION)
140N/A (cd $(COMPONENT_SRC) ; env - $(PYTHON_ENV) $(PYTHON.$(BITS)) ./setup.py install --root $(PROTO_DIR))
140N/A $(COMPONENT_POST_INSTALL_ACTION)
140N/A $(TOUCH) $@
140N/A