diff options
author | markm <markm@FreeBSD.org> | 2001-09-20 12:22:27 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2001-09-20 12:22:27 +0000 |
commit | 573604c529680987f725f0c159a3725d2b2bc0bc (patch) | |
tree | 5ecf6f98e45bddf79a491d71ce1b614976f32490 /gnu | |
parent | f1ee6b178206cb63eca976fd17bb9fb9067fd195 (diff) | |
download | FreeBSD-src-573604c529680987f725f0c159a3725d2b2bc0bc.zip FreeBSD-src-573604c529680987f725f0c159a3725d2b2bc0bc.tar.gz |
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.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/perl/Makefile | 19 | ||||
-rw-r--r-- | gnu/usr.bin/perl/Makefile.inc | 5 | ||||
-rw-r--r-- | 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 fd0fa55..eb3a8c9 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 <bsd.subdir.mk> diff --git a/gnu/usr.bin/perl/Makefile.inc b/gnu/usr.bin/perl/Makefile.inc index c4066bb..bd8b889 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 726602b..a82b1ce 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" |