summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorrillig <rillig>2006-10-04 22:24:49 +0000
committerrillig <rillig>2006-10-04 22:24:49 +0000
commite0e82963e12d94d6fb455e5d27254f385238da00 (patch)
treeecc95756babcc4961bc6fe3645554b92d6111613 /lang
parentaaf830f2c4dca56ada7e9a5a2c629e8c940c8e71 (diff)
downloadpkgsrc-e0e82963e12d94d6fb455e5d27254f385238da00.tar.gz
PERL5_CONFIGURE_DIRS may now contain directory names relative to
${WRKSRC}. This saves some keystrokes when writing Makefiles.
Diffstat (limited to 'lang')
-rw-r--r--lang/perl5/module.mk22
1 files changed, 13 insertions, 9 deletions
diff --git a/lang/perl5/module.mk b/lang/perl5/module.mk
index a385debbb37..5d11f17ee5e 100644
--- a/lang/perl5/module.mk
+++ b/lang/perl5/module.mk
@@ -1,4 +1,4 @@
-# $NetBSD: module.mk,v 1.52 2006/10/04 21:31:34 rillig Exp $
+# $NetBSD: module.mk,v 1.53 2006/10/04 22:24:49 rillig Exp $
#
# This Makefile fragment is intended to be included by packages that build
# and install perl5 modules.
@@ -94,21 +94,25 @@ MAKE_PARAMS+= ${MAKE_PARAMS.${_PERL5_MODTYPE}}
.PHONY: do-makemaker-configure
do-makemaker-configure:
- ${_PKG_SILENT}${_PKG_DEBUG} \
+ ${_PKG_SILENT}${_PKG_DEBUG} set -e; \
for dir in ${PERL5_CONFIGURE_DIRS}; do \
- if ${TEST} -f $$dir/Makefile.PL; then \
- ( cd $$dir && ${SETENV} ${MAKE_ENV} \
- ${PERL5} Makefile.PL ${MAKE_PARAMS} ); \
+ cd ${WRKSRC}; \
+ if ${TEST} -f "$$dir"/Makefile.PL; then \
+ cd "$$dir"; \
+ ${SETENV} ${MAKE_ENV} \
+ ${PERL5} Makefile.PL ${MAKE_PARAMS}; \
fi; \
done
.PHONY: do-modbuild-configure
do-modbuild-configure:
- ${_PKG_SILENT}${_PKG_DEBUG} \
+ ${_PKG_SILENT}${_PKG_DEBUG} set -e; \
for dir in ${PERL5_CONFIGURE_DIRS}; do \
- if ${TEST} -f $$dir/Build.PL; then \
- ( cd $$dir && ${SETENV} ${MAKE_ENV} \
- ${PERL5} Build.PL ${MAKE_PARAMS} ); \
+ cd ${WRKSRC}; \
+ if ${TEST} -f "$$dir"/Build.PL; then \
+ cd "$$dir"; \
+ ${SETENV} ${MAKE_ENV} \
+ ${PERL5} Build.PL ${MAKE_PARAMS}; \
fi; \
done