pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/perl5 Only do the build and test actions when NO_...
details: https://anonhg.NetBSD.org/pkgsrc/rev/d8c9b0c94dc7
branches: trunk
changeset: 519520:d8c9b0c94dc7
user: rillig <rillig%pkgsrc.org@localhost>
date: Wed Oct 04 21:31:34 2006 +0000
description:
Only do the build and test actions when NO_BUILD does not prevent them.
diffstat:
lang/perl5/module.mk | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diffs (28 lines):
diff -r 44b5a2528814 -r d8c9b0c94dc7 lang/perl5/module.mk
--- a/lang/perl5/module.mk Wed Oct 04 21:22:43 2006 +0000
+++ b/lang/perl5/module.mk Wed Oct 04 21:31:34 2006 +0000
@@ -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-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
###########################################################################
Home |
Main Index |
Thread Index |
Old Index