-# $NetBSD: Makefile,v 1.11 1995/03/23 08:28:33 cgd Exp $
+# $NetBSD: Makefile,v 1.15 1996/02/29 00:21:16 jtc Exp $
# @(#)Makefile 8.2 (Berkeley) 4/19/94
SRCS= fortunes fortunes2 startrek zippy
CLEANFILES+=${BLDS}
STRFILE!=cd $(.CURDIR)/../strfile; \
- printf "xxx:\n\techo \$${.OBJDIR}/strfile\n" | ${MAKE} -r -s -f - xxx
+ printf "xxx:\n\techo \$${.OBJDIR}/strfile\n" | \
+ ${MAKE} -r -s -f - xxx | grep strfile
all: ${BLDS}
install: ${SRCS} ${BLDS}
(cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
${SRCS} ${DESTDIR}/usr/share/games/fortune)
- install -o ${BINOWN} -g ${BINGRP} -m 444 ${BLDS} \
+ install -c -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:
fortunes-o.dat: fortunes-o
${STRFILE} -rsx fortunes-o ${.TARGET}
-#fortunes-o: fortunes-o.${TYPE}
-# /usr/games/caesar 13 < ${.ALLSRC} > ${.TARGET}
-
-fortunes-o: fortunes-o.${TYPE}.rot13
- cat < ${.ALLSRC} > ${.TARGET}
+fortunes-o: fortunes-o.${TYPE}
+ tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET}
.include <bsd.prog.mk>