diff options
author | jb <jb@FreeBSD.org> | 1998-05-12 23:02:14 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1998-05-12 23:02:14 +0000 |
commit | 0955429cc86f0d3cce400369618cd6d4825f4e23 (patch) | |
tree | bb7a9651da1b4ed2e5c2c40bd576ba6202891cd5 /gnu/usr.bin/perl | |
parent | 857a75046267d0b96b6a5f9a0ea9ea207c38e6f2 (diff) | |
download | FreeBSD-src-0955429cc86f0d3cce400369618cd6d4825f4e23.zip FreeBSD-src-0955429cc86f0d3cce400369618cd6d4825f4e23.tar.gz |
Allow the makefile to choose the perl executable to run h2ph rather
than relying on the #!/usr/bin/perl in the first line of the script.
Diffstat (limited to 'gnu/usr.bin/perl')
-rw-r--r-- | gnu/usr.bin/perl/x2p/Makefile | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/gnu/usr.bin/perl/x2p/Makefile b/gnu/usr.bin/perl/x2p/Makefile index e3efe4b..9ec653d 100644 --- a/gnu/usr.bin/perl/x2p/Makefile +++ b/gnu/usr.bin/perl/x2p/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.12 1998/05/04 20:09:01 bde Exp $ +# $Id: Makefile,v 1.13 1998/05/05 05:25:21 bde Exp $ PROG= a2p @@ -9,6 +9,15 @@ YFLAGS= LDADD= -lm DPADD= ${LIBM} +# If perl exists in none of these places, something is horribly wrong. +.if exists(${.OBJDIR}/../perl/perl) +PERL=${.OBJDIR}/../perl/perl +.elif !defined(PERL) && exists(${.CURDIR}/../perl/perl) +PERL=${.CURDIR}/../perl/perl +.else +PERL= ${DESTDIR}/usr/bin/perl +.endif + MAN1+= a2p.1 s2p.1 h2ph.1 beforeinstall: @@ -18,7 +27,7 @@ beforeinstall: ${DESTDIR}${BINDIR} afterinstall: - (DESTDIR=${DESTDIR}; cd ${DESTDIR}/usr/include; ${BINDIR}/h2ph * machine/* sys/*) + (DESTDIR=${DESTDIR}; cd ${DESTDIR}/usr/include; ${PERL} ${DESTDIR}${BINDIR}/h2ph * machine/* sys/*) .include "../../Makefile.inc" .include <bsd.prog.mk> |