summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1998-05-29 06:17:00 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1998-05-29 06:17:00 +0000
commit9d09e08b3c687c7b19c92817a04f75b14676d331 (patch)
tree527a90748401d26074d1369068ab2c9bf9b82876 /gnu
parent794d65904a21e5b3fe56fba620d583eea3cc1da0 (diff)
Notes
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/perl/usub/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/gnu/usr.bin/perl/usub/Makefile b/gnu/usr.bin/perl/usub/Makefile
index b66d6997dae6..042182354347 100644
--- a/gnu/usr.bin/perl/usub/Makefile
+++ b/gnu/usr.bin/perl/usub/Makefile
@@ -16,13 +16,16 @@ 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
-.endif
-.if !defined(PERL) && exists(${.CURDIR}/../perl/perl)
+.elif exists(${.CURDIR}/../perl/perl)
PERL=${.CURDIR}/../perl/perl
.else
-PERL= /usr/bin/perl
+PERL= ${DESTDIR}/usr/bin/perl
+.endif
.endif
curses.c: curses.mus