diff options
| author | John Birrell <jb@FreeBSD.org> | 1998-05-12 23:02:14 +0000 |
|---|---|---|
| committer | John Birrell <jb@FreeBSD.org> | 1998-05-12 23:02:14 +0000 |
| commit | 4baa8a70b5aad14e8ef8583864f75ae55cb6dfaf (patch) | |
| tree | b26c2bb92f3cfba7dec2180ba7c70fddf802305b /gnu | |
| parent | ecf85f0379a080be6fd1dc86ed10123e96b02c4c (diff) | |
Notes
Diffstat (limited to 'gnu')
| -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 e3efe4b87568..9ec653dabf44 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> |
