summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/perl/usub/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/gnu/usr.bin/perl/usub/Makefile b/gnu/usr.bin/perl/usub/Makefile
index 7b9189e..b9859fa 100644
--- a/gnu/usr.bin/perl/usub/Makefile
+++ b/gnu/usr.bin/perl/usub/Makefile
@@ -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
OpenPOWER on IntegriCloud