diff options
author | dillo <dillo@pkgsrc.org> | 2002-11-23 10:19:29 +0000 |
---|---|---|
committer | dillo <dillo@pkgsrc.org> | 2002-11-23 10:19:29 +0000 |
commit | 2ec06e22a20ab04be4ddd747387971103b1c8de9 (patch) | |
tree | 4dc64662be4e2d91183ba5a1d5078b9413771bea /mk | |
parent | f281ba71ccc59f6b884376c8b8e558f392807416 (diff) | |
download | pkgsrc-2ec06e22a20ab04be4ddd747387971103b1c8de9.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.mk | 6 |
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) |