X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/63cd2b491532e5cde073130939a52068a1d361d2..fb4bf232f26bcf58854d0ad1bca260452ef50301:/fortune/datfiles/Makefile?ds=inline diff --git a/fortune/datfiles/Makefile b/fortune/datfiles/Makefile index 0552ca39..a9911c1d 100644 --- a/fortune/datfiles/Makefile +++ b/fortune/datfiles/Makefile @@ -1,37 +1,42 @@ -# from: @(#)Makefile 5.2 (Berkeley) 5/6/91 -# $Id: Makefile,v 1.7 1993/09/30 23:57:08 jtc Exp $ +# $NetBSD: Makefile,v 1.15 1996/02/29 00:21:16 jtc Exp $ +# @(#)Makefile 8.2 (Berkeley) 4/19/94 -# -# set `OBSCENE' to "real" to have obscene fortunes installed, -# fake to have a note stating that they're not installed -# isntalled in their place -# -OBSCENE=real +SRCS= fortunes fortunes2 startrek zippy +BLDS= fortunes.dat fortunes2.dat startrek.dat zippy.dat \ + fortunes-o fortunes-o.dat -NORMDAT= fortunes.dat startrek.dat zippy.dat -OBSDAT= fortunes-o.dat -DATFILES= ${NORMDAT} ${OBSDAT} +# TO INSTALL THE POTENTIALLY OFFENSIVE FORTUNES, UNCOMMENT THE THREE +# LINES AND COMMENT OUT THE FOURTH LINE. -CLEANFILES+=${DATFILES} +# THE THREE LINES +SRCS+= fortunes2-o limerick +BLDS+= fortunes2-o.dat limerick.dat +TYPE= real -all: ${DATFILES} +# THE FOURTH LINE +#TYPE= fake -install: - @install -d -o root -g wheel -m 755 ${DESTDIR}/usr/share/games/fortune - install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${DATFILES} \ - ${DESTDIR}/usr/share/games/fortune - (cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ - ${NORMDAT:R} ${DESTDIR}/usr/share/games/fortune) +CLEANFILES+=${BLDS} + +STRFILE!=cd $(.CURDIR)/../strfile; \ + 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 \ - ${OBSDAT:R}.${OBSCENE}.rot13 \ - ${DESTDIR}/usr/share/games/fortune/${OBSDAT:R}) + ${SRCS} ${DESTDIR}/usr/share/games/fortune) + 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: + ${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET} -fortunes-o.dat: ${.TARGET:R}.${OBSCENE}.rot13 - ${.CURDIR}/../strfile/obj/strfile -rsx \ - ${.CURDIR}/${.TARGET:R}.${OBSCENE}.rot13 ${.TARGET} +fortunes-o.dat: fortunes-o + ${STRFILE} -rsx fortunes-o ${.TARGET} -fortunes.dat startrek.dat zippy.dat: ${.TARGET:R} - ${.CURDIR}/../strfile/obj/strfile -rs \ - ${.CURDIR}/${.TARGET:R} ${.TARGET} +fortunes-o: fortunes-o.${TYPE} + tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET} .include