Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/Uses/perl5.mk
Show First 20 Lines • Show All 302 Lines • ▼ Show 20 Lines | |||||
# Some ports use their own way of building perl modules and generate | # Some ports use their own way of building perl modules and generate | ||||
# perllocal.pod, remove it here so that those ports don't include it | # perllocal.pod, remove it here so that those ports don't include it | ||||
# by mistake in their plists. It is sometime compressed, so use a | # by mistake in their plists. It is sometime compressed, so use a | ||||
# shell glob for the removal. Also, remove the directories that | # shell glob for the removal. Also, remove the directories that | ||||
# contain it to not leave orphans directories around. | # contain it to not leave orphans directories around. | ||||
@${RM} -f ${STAGEDIR}${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH}/perllocal.pod* || : | @${RM} -f ${STAGEDIR}${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH}/perllocal.pod* || : | ||||
@${RMDIR} -p ${STAGEDIR}${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH} 2>/dev/null || : | @${RMDIR} -p ${STAGEDIR}${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH} 2>/dev/null || : | ||||
.if !target(regression-test) | .if !target(do-test) | ||||
TEST_ARGS?= ${MAKE_ARGS} | |||||
TEST_ENV?= ${MAKE_ENV} | |||||
TEST_TARGET?= test | TEST_TARGET?= test | ||||
TEST_WRKSRC?= ${BUILD_WRKSRC} | TEST_WRKSRC?= ${BUILD_WRKSRC} | ||||
.if !target(test) | do-test: | ||||
test: regression-test | |||||
.endif # test | |||||
regression-test: build | |||||
.if ${USE_PERL5:Mmodbuild*} | .if ${USE_PERL5:Mmodbuild*} | ||||
-cd ${TEST_WRKSRC}/ && ${SETENV} ${TEST_ENV} ${PERL5} ${PL_BUILD} ${TEST_TARGET} ${TEST_ARGS} | cd ${TEST_WRKSRC}/ && ${SETENV} ${TEST_ENV} ${PERL5} ${PL_BUILD} ${TEST_TARGET} ${TEST_ARGS} | ||||
.elif ${USE_PERL5:Mconfigure} | .elif ${USE_PERL5:Mconfigure} | ||||
-cd ${TEST_WRKSRC}/ && ${SETENV} ${TEST_ENV} ${MAKE_CMD} ${TEST_ARGS} ${TEST_TARGET} | cd ${TEST_WRKSRC}/ && ${SETENV} ${TEST_ENV} ${MAKE_CMD} ${TEST_ARGS} ${TEST_TARGET} | ||||
.endif # USE_PERL5:Mmodbuild* | .endif # USE_PERL5:Mmodbuild* | ||||
.endif # regression-test | .endif # regression-test | ||||
.endif # defined(_POSTMKINCLUDED) | .endif # defined(_POSTMKINCLUDED) |