summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authordillo <dillo>2002-11-23 10:19:29 +0000
committerdillo <dillo>2002-11-23 10:19:29 +0000
commit47d52109d4d93cfebde43b15371bcb2e9544107b (patch)
tree4dc64662be4e2d91183ba5a1d5078b9413771bea /mk
parent134cedecd8e1dbb4c851a9ecd857e2b49873c57d (diff)
downloadpkgsrc-47d52109d4d93cfebde43b15371bcb2e9544107b.tar.gz
If PKGSRC_RUN_TEST is yes, make all run test. This results in test
being run during the first part of a make; make install sequence. (As suggested by Greg A. Woods on tech-pkg.)
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index a36e76f0347..bda0f5e9619 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1086 2002/11/21 00:49:32 jlam Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1087 2002/11/23 10:19:29 dillo Exp $
#
# This file is in the public domain.
#
@@ -1138,7 +1138,11 @@ BUILD_DEFS+= OSVERSION_SPECIFIC
.endif # OSVERSION_SPECIFIC
.if !target(all)
+. if ${PKGSRC_RUN_TEST} == "YES" || ${PKGSRC_RUN_TEST} == "yes"
+all: test
+. else
all: build
+. endif
.endif
.if !defined(DEPENDS_TARGET)