summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-10-04 22:24:49 +0000
committerrillig <rillig@pkgsrc.org>2006-10-04 22:24:49 +0000
commit8e54e211ef33bd04e6eb16e5df6bdf8b5a5d6961 (patch)
treeecc95756babcc4961bc6fe3645554b92d6111613 /lang
parentc9a03f8c20932ac3e167ddabf8aced36f4cfc0ca (diff)
downloadpkgsrc-8e54e211ef33bd04e6eb16e5df6bdf8b5a5d6961.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