Through some hackery-pokery, allow folks to cd to src/gnu/usr.bin/perl

and do the usual "make obj && make depend all".

This sort of stuff makes my teeth itch, but folks wanted it badly
enough, so here it is.
This commit is contained in:
Mark Murray 2001-09-20 12:22:27 +00:00
parent d845f3651a
commit b6c358a73d
3 changed files with 22 additions and 3 deletions

View File

@ -1,7 +1,24 @@
# $FreeBSD$
SUBDIR= libperl perl suidperl library pod utils x2p BSDPAN
.ifmake !install && !distribute
_MINI= miniperl
.endif
SUBDIR= libperl ${_MINI} perl suidperl library pod utils x2p BSDPAN
MAINTAINER=markm@freebsd.org
.BEGIN:
.ifmake depend || all
if [ \! -f ${.OBJDIR}/build-tools ] ; then \
${ECHO} TESTING TESTING TESTING ; \
cd ${.CURDIR}/libperl && ${MAKE} depend && ${MAKE} all ; \
cd ${.CURDIR}/miniperl && ${MAKE} depend && ${MAKE} all ; \
touch ${.OBJDIR}/build-tools ; \
fi
.endif
.ifmake cleandir || clean
@rm -f ${.OBJDIR}/build-tools
.endif
.include <bsd.subdir.mk>

View File

@ -2,7 +2,10 @@
PERL5SRC?= ${.CURDIR}/../../../../contrib/perl5
PERL5LIBSRC?= ${.CURDIR}/../libperl
MINIPERL?= miniperl
MINIPERL!= echo `PATH=$$PATH:${.OBJDIR}/../miniperl:${.OBJDIR}/../../miniperl which miniperl`
test:
echo FOO FOO FOO ${MINIPERL}
BINDIR?= /usr/bin

View File

@ -4,7 +4,6 @@
PERL5SRC= ${.CURDIR}/../../../../../contrib/perl5
PERL5LIBSRC= ${.CURDIR}/../../libperl
MINIPERL= miniperl
.include "../Makefile.inc"