Makefile revision 6762
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm#
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm# CDDL HEADER START
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm#
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm# The contents of this file are subject to the terms of the
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm# Common Development and Distribution License (the "License").
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm# You may not use this file except in compliance with the License.
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm#
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm# or http://www.opensolaris.org/os/licensing.
fefed98e624e5b375661d137181340caa08440e3johanengelen# See the License for the specific language governing permissions
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm# and limitations under the License.
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm#
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm# When distributing Covered Code, include this CDDL HEADER in each
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm# If applicable, add the following below this CDDL HEADER, with the
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm# fields enclosed by brackets "[]" replaced with your own identifying
64caa91f2899a6648503a75dc7310841955b74fdJucaBlues# information: Portions Copyright [yyyy] [name of copyright owner]
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm#
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm# CDDL HEADER END
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm#
d431763a9ec8059aa4962688de8144319969fb0fjohanengelen
d431763a9ec8059aa4962688de8144319969fb0fjohanengelen#
d431763a9ec8059aa4962688de8144319969fb0fjohanengelen# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
d90df4b5134fecb1e7248afbf601bae9d55682c6johanengelen#
d431763a9ec8059aa4962688de8144319969fb0fjohanengelen
d90df4b5134fecb1e7248afbf601bae9d55682c6johanengeleninclude ../../../make-rules/shared-macros.mk
d431763a9ec8059aa4962688de8144319969fb0fjohanengelen
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrmCOMPONENT_NAME= pysmi
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrmCOMPONENT_VERSION= 0.0.7
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrmCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrmCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrmCOMPONENT_ARCHIVE_HASH= \
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm sha256:999f6db9e16f4cc2804263d825553dbdd188c4313ca5c1244eeb20a3c4a60116
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrmCOMPONENT_ARCHIVE_URL= $(call pypi_url)
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrmCOMPONENT_PROJECT_URL= http://pysmi.sf.net
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrmCOMPONENT_BUGDB= python-mod/pysmi
d431763a9ec8059aa4962688de8144319969fb0fjohanengelen
0b8c1be8fec73b0ce317e9afa5ca6aa35a3b2545johanengelenTPNO= 29887
0b8c1be8fec73b0ce317e9afa5ca6aa35a3b2545johanengelen
0b8c1be8fec73b0ce317e9afa5ca6aa35a3b2545johanengeleninclude $(WS_MAKE_RULES)/prep.mk
0b8c1be8fec73b0ce317e9afa5ca6aa35a3b2545johanengeleninclude $(WS_MAKE_RULES)/setup.py.mk
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrminclude $(WS_MAKE_RULES)/ips.mk
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrmASLR_MODE = $(ASLR_NOT_APPLICABLE)
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm# Allow pkg to create the mediated link.
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrmCOMPONENT_POST_INSTALL_ACTION = \
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm (cd $(PROTO_DIR)/usr/bin; $(MV) mibdump.py mibdump.py-$(PYTHON_VERSION))
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm# common targets
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrmbuild: $(BUILD_NO_ARCH)
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrminstall: $(INSTALL_NO_ARCH)
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm# Run the tests in the build directory so as not to touch the source directory.
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm# Because they're not copied over during the build, we do that now. There are
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm# four test failures due simply to the tests being incompatible with Python 3,
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm# and four other failures that show up in Python 2 as well.
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrmCOMPONENT_PRE_TEST_ACTION = \
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm $(CP) -r $(COMPONENT_SRC)/tests $(@D)
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrmCOMPONENT_TEST_DIR = $(@D)
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrmCOMPONENT_TEST_CMD = py.test-$(PYTHON_VERSION)
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrmCOMPONENT_TEST_ARGS = --result-log=$(COMPONENT_TEST_OUTPUT)
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrmCOMPONENT_TEST_MASTER = \
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm $(COMPONENT_TEST_RESULTS_DIR)/results-py$(basename $(PYTHON_VERSION)).master
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrmtest: $(TEST_NO_ARCH)
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrmsystem-test: $(NO_TESTS)
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm