summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2013-10-30 08:39:07 +0000
committerobache <obache@pkgsrc.org>2013-10-30 08:39:07 +0000
commit2f12eeba7a1a5e64898c3ce27516be8704d40df0 (patch)
tree4200f5f26fa01339b11912d80f9142c50429e086 /lang
parent861c39b11a39b0dd9729a53400367c9a3be8e086 (diff)
downloadpkgsrc-2f12eeba7a1a5e64898c3ce27516be8704d40df0.tar.gz
Only define do-test target for the case package itself does not define own
test target.
Diffstat (limited to 'lang')
-rw-r--r--lang/python/extension.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/lang/python/extension.mk b/lang/python/extension.mk
index a6d5d7cd4ba..37f0b447761 100644
--- a/lang/python/extension.mk
+++ b/lang/python/extension.mk
@@ -1,4 +1,4 @@
-# $NetBSD: extension.mk,v 1.33 2013/10/29 23:52:56 wiz Exp $
+# $NetBSD: extension.mk,v 1.34 2013/10/30 08:39:07 obache Exp $
.include "../../lang/python/pyversion.mk"
@@ -37,9 +37,11 @@ do-build:
do-install:
(cd ${WRKSRC}/${PYSETUPSUBDIR} && ${SETENV} ${INSTALL_ENV} ${MAKE_ENV} \
${PYTHONBIN} ${PYSETUP} ${PYSETUPARGS} "install" ${_PYSETUPINSTALLARGS})
+.if !target(do-test) && !(defined(TEST_TARGET) && !empty(TEST_TARGET))
do-test:
(cd ${WRKSRC}/${PYSETUPSUBDIR} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} \
${PYSETUP} ${PYSETUPARGS} ${PYSETUPTESTTARGET} ${PYSETUPTESTARGS})
+.endif
.endif