summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-03-25 17:14:11 +0000
committerjkh <jkh@FreeBSD.org>1995-03-25 17:14:11 +0000
commitd4954bb2528d637f85cea36dc322a454b104bed9 (patch)
treeec0776df508395594754d724e6292c86c88997ae /gnu
parent05c4d98f93dfed971fbeaf13c18dbbab396ae6b2 (diff)
downloadFreeBSD-src-d4954bb2528d637f85cea36dc322a454b104bed9.zip
FreeBSD-src-d4954bb2528d637f85cea36dc322a454b104bed9.tar.gz
Get PERL found in any of its obvious locations.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/perl/usub/Makefile23
1 files changed, 17 insertions, 6 deletions
diff --git a/gnu/usr.bin/perl/usub/Makefile b/gnu/usr.bin/perl/usub/Makefile
index c0a55ba..3298303 100644
--- a/gnu/usr.bin/perl/usub/Makefile
+++ b/gnu/usr.bin/perl/usub/Makefile
@@ -1,10 +1,11 @@
PROG= curseperl
-SRCS+= array.c cmd.c cons.c consarg.c
-SRCS+= doarg.c doio.c dolist.c dump.c
-SRCS+= eval.c form.c hash.c malloc.c
-SRCS+= perl.c perly.c regcomp.c regexec.c
-SRCS+= stab.c str.c toke.c util.c
+# From perl
+SRCS+= array.c cmd.c cons.c consarg.c doarg.c doio.c dolist.c dump.c
+SRCS+= eval.c form.c hash.c malloc.c perl.c perly.c regcomp.c regexec.c
+SRCS+= stab.c str.c toke.c util.c
+
+# Local to us.
SRCS+= usersub.c curses.c
CFLAGS+= -DDEBUGGING -I${.CURDIR}/../perl
@@ -14,8 +15,18 @@ CLEANFILES+= curses.c
VPATH+= ${.CURDIR}/../perl
NOMAN= yes
+# If perl exists in none of these places, something is horribly wrong.
+.if exists(${.CURDIR}/../perl/obj/perl)
+PERL=${.CURDIR}/../perl/obj/perl
+.endif
+.if !defined(PERL) && exists(${.CURDIR}/../perl/perl)
+PERL=${.CURDIR}/../perl/perl
+.else
+PERL= /usr/bin/perl
+.endif
+
curses.c: curses.mus
- /usr/bin/perl ${.CURDIR}/mus ${.CURDIR}/curses.mus > curses.c
+ ${PERL} ${.CURDIR}/mus ${.CURDIR}/curses.mus > curses.c
.include "../../Makefile.inc"
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud