diff options
author | phk <phk@FreeBSD.org> | 1998-09-17 08:52:40 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1998-09-17 08:52:40 +0000 |
commit | 491bbc142741d620408945c62039af884cbac85a (patch) | |
tree | 4fcc2143b1298a136fdcdab518a4f4ce80e37b9f /games | |
parent | 35ddf969aa1396d163b5c6b41cee19ca80557be6 (diff) | |
download | FreeBSD-src-491bbc142741d620408945c62039af884cbac85a.zip FreeBSD-src-491bbc142741d620408945c62039af884cbac85a.tar.gz |
Don't expect /usr/games in the path.
Avoid using /usr/games versions if we can find what we need (caesar & strfile)
in the buildtree.
PR: 7936
Submitted by: Achim Patzner <ap@noses.com>
Diffstat (limited to 'games')
-rw-r--r-- | games/fortune/datfiles/Makefile | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/games/fortune/datfiles/Makefile b/games/fortune/datfiles/Makefile index daeaeb1..2624123d 100644 --- a/games/fortune/datfiles/Makefile +++ b/games/fortune/datfiles/Makefile @@ -15,6 +15,19 @@ TYPE= real # THE FOURTH LINE #TYPE= fake +# Try to find these in the build tree +.if exists(../strfile/strfile) +STRFILE=../strfile/strfile +.else +STRFILE=/usr/games/strfile +.endif + +.if exists(../../caesar/caesar) +CAESAR=../../caesar/caesar +.else +CAESAR=/usr/games/caesar +.endif + CLEANFILES+=${BLDS} all: ${FILES} ${BLDS} @@ -25,13 +38,13 @@ install: ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} ${BLDS} \ ${DESTDIR}${SHAREDIR}/games/fortune -fortunes.dat fortunes2.dat fortunes2-o.dat limerick.dat startrek.dat zippy.dat: - strfile -rs ${.CURDIR}/${.TARGET:R} ${.TARGET} +fortunes.dat fortunes2.dat fortunes2-o.dat limerick.dat startrek.dat zippy.dat: ${STRFILE} + ${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET} -fortunes-o.dat: fortunes-o - strfile -rsx fortunes-o ${.TARGET} +fortunes-o.dat: fortunes-o ${STRFILE} + ${STRFILE} -rsx fortunes-o ${.TARGET} -fortunes-o: fortunes-o.${TYPE} - caesar 13 < ${.ALLSRC} > ${.TARGET} +fortunes-o: fortunes-o.${TYPE} ${CAESAR} + ${CAESAR} 13 < ${.ALLSRC} > ${.TARGET} .include <bsd.prog.mk> |