diff options
Diffstat (limited to 'gnu/usr.bin/perl/utils/Makefile.inc')
-rw-r--r-- | gnu/usr.bin/perl/utils/Makefile.inc | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/gnu/usr.bin/perl/utils/Makefile.inc b/gnu/usr.bin/perl/utils/Makefile.inc index a82b1ce..80b2f6f 100644 --- a/gnu/usr.bin/perl/utils/Makefile.inc +++ b/gnu/usr.bin/perl/utils/Makefile.inc @@ -9,16 +9,20 @@ PERL5LIBSRC= ${.CURDIR}/../../libperl MINIPERLOPT?= -I${.OBJDIR}/../../perl/lib -I${.OBJDIR}/../../perl -I${PERL5SRC} -${PROG}: ${PROG}.PL - ${MINIPERL} ${MINIPERLOPT} ${.OODATE} +.if defined(SCRIPTS) +.if !defined(NOMAN) +MAN= ${SCRIPTS}.1 +.endif -${PROG}.1: ${PROG}.PL - ${MINIPERL} ${MINIPERLOPT} \ - ${.OBJDIR}/../../pod/pod2man/pod2man ${.OODATE} > ${.TARGET} +${SCRIPTS}: ${SCRIPTS}.PL + ${MINIPERL} ${MINIPERLOPT} ${.ALLSRC} -${PROG}.PL: ${PERL5SRC}/utils/${PROG}.PL - ln -sf ${.OODATE} ${.TARGET} +${SCRIPTS}.1: ${SCRIPTS}.PL + ${MINIPERL} ${MINIPERLOPT} \ + ${.OBJDIR}/../../pod/pod2man/pod2man ${.ALLSRC} > ${.TARGET} -CLEANFILES+= ${PROG}.1 ${PROG}.PL pstruct +${SCRIPTS}.PL: ${PERL5SRC}/utils/${SCRIPTS}.PL + ln -sf ${.ALLSRC} ${.TARGET} -STRIP= +CLEANFILES+= ${SCRIPTS} ${SCRIPTS}.1 ${SCRIPTS}.PL pstruct +.endif |