From b6c358a73d84194a78b214c154b9c9dae7f08a28 Mon Sep 17 00:00:00 2001 From: Mark Murray Date: Thu, 20 Sep 2001 12:22:27 +0000 Subject: [PATCH] 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. --- gnu/usr.bin/perl/Makefile | 19 ++++++++++++++++++- gnu/usr.bin/perl/Makefile.inc | 5 ++++- gnu/usr.bin/perl/utils/Makefile.inc | 1 - 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/gnu/usr.bin/perl/Makefile b/gnu/usr.bin/perl/Makefile index fd0fa55e5ecc..eb3a8c9847e2 100644 --- a/gnu/usr.bin/perl/Makefile +++ b/gnu/usr.bin/perl/Makefile @@ -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 diff --git a/gnu/usr.bin/perl/Makefile.inc b/gnu/usr.bin/perl/Makefile.inc index c4066bb0dd1f..bd8b8891675d 100644 --- a/gnu/usr.bin/perl/Makefile.inc +++ b/gnu/usr.bin/perl/Makefile.inc @@ -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 diff --git a/gnu/usr.bin/perl/utils/Makefile.inc b/gnu/usr.bin/perl/utils/Makefile.inc index 726602bdd170..a82b1ce65345 100644 --- a/gnu/usr.bin/perl/utils/Makefile.inc +++ b/gnu/usr.bin/perl/utils/Makefile.inc @@ -4,7 +4,6 @@ PERL5SRC= ${.CURDIR}/../../../../../contrib/perl5 PERL5LIBSRC= ${.CURDIR}/../../libperl -MINIPERL= miniperl .include "../Makefile.inc"