Makefile revision 6759
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste#
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste# CDDL HEADER START
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste#
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste# The contents of this file are subject to the terms of the
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste# Common Development and Distribution License (the "License").
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste# You may not use this file except in compliance with the License.
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste#
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste# or http://www.opensolaris.org/os/licensing.
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste# See the License for the specific language governing permissions
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste# and limitations under the License.
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste#
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste# When distributing Covered Code, include this CDDL HEADER in each
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste# If applicable, add the following below this CDDL HEADER, with the
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste# fields enclosed by brackets "[]" replaced with your own identifying
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste# information: Portions Copyright [yyyy] [name of copyright owner]
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste#
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste# CDDL HEADER END
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste#
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste#
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste#
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste
975c2ef6bae7a6e3c27e130e3d49e1585e2dfe81Jaco Joosteinclude ../../../make-rules/shared-macros.mk
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste
18aeb66595456f6f996a857aa636df9107d9492aJaco JoosteCOMPONENT_NAME= os-brick
18aeb66595456f6f996a857aa636df9107d9492aJaco JoosteCOMPONENT_VERSION= 1.2.0
18aeb66595456f6f996a857aa636df9107d9492aJaco JoosteCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
18aeb66595456f6f996a857aa636df9107d9492aJaco JoosteCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
18aeb66595456f6f996a857aa636df9107d9492aJaco JoosteCOMPONENT_ARCHIVE_HASH= \
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste sha256:e8c5931d2a5115a7c484276add6be6b5e3ba13402c8a71e32b2313448010be30
18aeb66595456f6f996a857aa636df9107d9492aJaco JoosteCOMPONENT_ARCHIVE_URL= $(call pypi_url)
18aeb66595456f6f996a857aa636df9107d9492aJaco JoosteCOMPONENT_PROJECT_URL= http://docs.openstack.org/developer/os-brick/
18aeb66595456f6f996a857aa636df9107d9492aJaco JoosteCOMPONENT_BUGDB= python-mod/os-brick
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste
18aeb66595456f6f996a857aa636df9107d9492aJaco JoosteTPNO= 29698
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste# Depends on oslo.serialization which is not Python 3 ready.
18aeb66595456f6f996a857aa636df9107d9492aJaco JoostePYTHON_VERSIONS = $(PYTHON2_VERSIONS)
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste
18aeb66595456f6f996a857aa636df9107d9492aJaco Joosteinclude $(WS_MAKE_RULES)/prep.mk
18aeb66595456f6f996a857aa636df9107d9492aJaco Joosteinclude $(WS_MAKE_RULES)/setup.py.mk
18aeb66595456f6f996a857aa636df9107d9492aJaco Joosteinclude $(WS_MAKE_RULES)/ips.mk
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste
18aeb66595456f6f996a857aa636df9107d9492aJaco JoosteASLR_MODE = $(ASLR_NOT_APPLICABLE)
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste
18aeb66595456f6f996a857aa636df9107d9492aJaco JoosteCOMPONENT_POST_INSTALL_ACTION += \
975c2ef6bae7a6e3c27e130e3d49e1585e2dfe81Jaco Jooste $(CP) \
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste files/solaris/solarisfc.py \
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste files/solaris/solarisiscsi.py \
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste $(PROTO_DIR)$(PYTHON_LIB)/os_brick/initiator; \
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste $(PYTHON) -m compileall $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES)
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste# common targets
975c2ef6bae7a6e3c27e130e3d49e1585e2dfe81Jaco Joostebuild: $(BUILD_NO_ARCH)
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste
18aeb66595456f6f996a857aa636df9107d9492aJaco Joosteinstall: $(INSTALL_NO_ARCH)
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste
975c2ef6bae7a6e3c27e130e3d49e1585e2dfe81Jaco Jooste# See $(COMPONENT_SRC)/test-requirements.txt for the Python modules
975c2ef6bae7a6e3c27e130e3d49e1585e2dfe81Jaco Jooste# required to execute unittests.
975c2ef6bae7a6e3c27e130e3d49e1585e2dfe81Jaco Joostetest: $(NO_TESTS)
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste