diff options
Diffstat (limited to 'games/fortune/datfiles/Makefile')
-rw-r--r-- | games/fortune/datfiles/Makefile | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/games/fortune/datfiles/Makefile b/games/fortune/datfiles/Makefile index 1c6de42..72786ee 100644 --- a/games/fortune/datfiles/Makefile +++ b/games/fortune/datfiles/Makefile @@ -15,22 +15,37 @@ TYPE= real # THE FOURTH LINE #TYPE= fake +.if exists(${.CURDIR}/../../caesar/obj/caesar) +CAESAR=${.CURDIR}/../../caesar/obj/caesar +.elif exists(${.CURDIR}/../../caesar/caesar) +CAESAR=${.CURDIR}/../../caesar/caesar +.else +CAESAR=/usr/games/caesar +.endif + +.if exists(${.CURDIR}/../strfile/obj/strfile) +STRFILE=${.CURDIR}/../strfile/obj/strfile +.else +STRFILE=${.CURDIR}/../strfile/strfile +.endif + CLEANFILES+=${BLDS} -install: ${SRCS} ${BLDS} +all: ${SRCS} ${BLDS} + +install: (cd ${.CURDIR} && ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ ${SRCS} ${DESTDIR}/usr/share/games/fortune) ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${BLDS} \ ${DESTDIR}/usr/share/games/fortune fortunes.dat fortunes2.dat fortunes2-o.dat limerick.dat startrek.dat zippy.dat: - ${.CURDIR}/../strfile/obj/strfile -rs \ - ${.CURDIR}/${.TARGET:R} ${.TARGET} + ${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET} fortunes-o.dat: fortunes-o - ${.CURDIR}/../strfile/obj/strfile -rsx fortunes-o ${.TARGET} + ${STRFILE} -rsx fortunes-o ${.TARGET} fortunes-o: fortunes-o.${TYPE} - PATH=../../caesar:$$PATH ; caesar 13 < ${.ALLSRC} > ${.TARGET} + ${CAESAR} 13 < ${.ALLSRC} > ${.TARGET} .include <bsd.prog.mk> |