535cc97895
a lot of nasty STRIP= problems. This has the added side effect if neatening up some leaf makefiles very nicely. Submitted by: ru
29 lines
614 B
Makefile
29 lines
614 B
Makefile
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PERL5SRC= ${.CURDIR}/../../../../../contrib/perl5
|
|
PERL5LIBSRC= ${.CURDIR}/../../libperl
|
|
|
|
.include "../Makefile.inc"
|
|
|
|
MINIPERLOPT?= -I${.OBJDIR}/../../perl/lib -I${.OBJDIR}/../../perl -I${PERL5SRC}
|
|
|
|
.if defined(SCRIPTS)
|
|
.if !defined(NOMAN)
|
|
MAN= ${SCRIPTS}.1
|
|
.endif
|
|
|
|
${SCRIPTS}: ${SCRIPTS}.PL
|
|
${MINIPERL} ${MINIPERLOPT} ${.ALLSRC}
|
|
|
|
${SCRIPTS}.1: ${SCRIPTS}.PL
|
|
${MINIPERL} ${MINIPERLOPT} \
|
|
${.OBJDIR}/../../pod/pod2man/pod2man ${.ALLSRC} > ${.TARGET}
|
|
|
|
${SCRIPTS}.PL: ${PERL5SRC}/utils/${SCRIPTS}.PL
|
|
ln -sf ${.ALLSRC} ${.TARGET}
|
|
|
|
CLEANFILES+= ${SCRIPTS} ${SCRIPTS}.1 ${SCRIPTS}.PL pstruct
|
|
.endif
|