Also check for Satoshi's TMPDIR location of perl when looking around for it.

Clean up an .ifdef which was probably doing the wrong thing in the case
where user wants to override PERL.
Submitted by:	jhay
This commit is contained in:
Jordan K. Hubbard 1998-05-29 06:16:44 +00:00
parent 78beb0d5bd
commit f74e1ace9c

View File

@ -16,13 +16,17 @@ VPATH+= ${.CURDIR}/../perl
NOMAN= yes
# If perl exists in none of these places, something is horribly wrong.
.if exists(${.OBJDIR}/../perl/perl)
.if !defined(PERL)
.if exists(${.OBJDIR}/../../../../tmp/usr/bin/perl)
PERL=${.OBJDIR}/../../../../tmp/usr/bin/perl
.elif exists(${.OBJDIR}/../perl/perl)
PERL=${.OBJDIR}/../perl/perl
.elif !defined(PERL) && exists(${.CURDIR}/../perl/perl)
.elif exists(${.CURDIR}/../perl/perl)
PERL=${.CURDIR}/../perl/perl
.else
PERL= ${DESTDIR}/usr/bin/perl
.endif
.endif
curses.c: curses.mus
${PERL} ${.CURDIR}/mus ${.CURDIR}/curses.mus > curses.c