summaryrefslogtreecommitdiff
path: root/lang/perl5
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-10-04 21:31:34 +0000
committerrillig <rillig@pkgsrc.org>2006-10-04 21:31:34 +0000
commita3de4e93a9f3bf6898d9c2d2a48a0092be886cf7 (patch)
treee996a4617eca9732d3f198a199118e98b75e619b /lang/perl5
parent7c3e67ec5f9c628e276f0fcf21adbe58ec642d80 (diff)
downloadpkgsrc-a3de4e93a9f3bf6898d9c2d2a48a0092be886cf7.tar.gz
Only do the build and test actions when NO_BUILD does not prevent them.
Diffstat (limited to 'lang/perl5')
-rw-r--r--lang/perl5/module.mk14
1 files changed, 8 insertions, 6 deletions
diff --git a/lang/perl5/module.mk b/lang/perl5/module.mk
index e2c8d58f810..a385debbb37 100644
--- a/lang/perl5/module.mk
+++ b/lang/perl5/module.mk
@@ -1,4 +1,4 @@
-# $NetBSD: module.mk,v 1.51 2006/03/09 11:10:47 itohy Exp $
+# $NetBSD: module.mk,v 1.52 2006/10/04 21:31:34 rillig Exp $
#
# This Makefile fragment is intended to be included by packages that build
# and install perl5 modules.
@@ -131,11 +131,13 @@ do-modbuild-test:
do-modbuild-install:
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./Build install
-.for _target_ in build test install
-. if target(do-${_PERL5_MODTYPE}-${_target_})
-do-${_target_}: do-${_PERL5_MODTYPE}-${_target_}
-. endif
-.endfor
+.if target(do-${_PERL5_MODTYPE}-build) && !defined(NO_BUILD)
+do-build: do-${_PERL5_MODTYPE}-build
+do-test: do-${_PERL5_MODTYPE}-test
+.endif
+.if target(do-${_PERL5_MODTYPE}-install)
+do-install: do-${_PERL5_MODTYPE}-install
+.endif
###########################################################################