diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 1998-09-17 08:52:40 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1998-09-17 08:52:40 +0000 |
commit | 222c9402b8c76f19a3e49275bab0a1b93222cb71 (patch) | |
tree | 700b119be7764f4b1bb97bfb4508528a4cf6e33b /games/fortune/datfiles/Makefile | |
parent | 8d54281ce74d8a6dbb79da32673a2f78920b92ec (diff) | |
download | src-222c9402b8c76f19a3e49275bab0a1b93222cb71.tar.gz src-222c9402b8c76f19a3e49275bab0a1b93222cb71.zip |
Notes
Diffstat (limited to 'games/fortune/datfiles/Makefile')
-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 daeaeb10e888..2624123dd9cb 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> |