diff options
author | rillig <rillig@pkgsrc.org> | 2006-10-04 22:24:49 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-10-04 22:24:49 +0000 |
commit | bc85a438af8656477422a299b970f40a1071fa5a (patch) | |
tree | ecc95756babcc4961bc6fe3645554b92d6111613 /lang/perl5/module.mk | |
parent | 6544e49e20a534d2560683ba326249efb325cc8f (diff) | |
download | pkgsrc-bc85a438af8656477422a299b970f40a1071fa5a.tar.gz |
PERL5_CONFIGURE_DIRS may now contain directory names relative to
${WRKSRC}. This saves some keystrokes when writing Makefiles.
Diffstat (limited to 'lang/perl5/module.mk')
-rw-r--r-- | lang/perl5/module.mk | 22 |
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 |