X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/77e3814f0c0e3dea4d0032e25666f77e6f83bfff..4569c070f2bf0133ace14d1e5611848681d892d1:/fortune/datfiles/Makefile?ds=inline diff --git a/fortune/datfiles/Makefile b/fortune/datfiles/Makefile index 6af73c47..d92f8ba4 100644 --- a/fortune/datfiles/Makefile +++ b/fortune/datfiles/Makefile @@ -1,20 +1,37 @@ -# @(#)Makefile 5.2 (Berkeley) 5/6/91 +# from: @(#)Makefile 5.2 (Berkeley) 5/6/91 +# $Id: Makefile,v 1.10 1994/02/10 02:31:32 cgd Exp $ + +# +# 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 + +NORMDAT= fortunes.dat startrek.dat zippy.dat +OBSDAT= fortunes-o.dat +DATFILES= ${NORMDAT} ${OBSDAT} -DATFILES=fortunes.dat startrek.dat zippy.dat fortunes-o.dat CLEANFILES+=${DATFILES} -install: ${DATFILES} - (cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ - ${DATFILES:R} ${DESTDIR}/usr/share/games/fortune) - install -o ${BINOWN} -g ${BINGRP} -m 444 ${DATFILES} \ +STRFILE!=cd $(.CURDIR)/../strfile; \ + printf "xxx:\n\techo \$${.OBJDIR}/strfile\n" | ${MAKE} -r -s -f - xxx + +all: ${DATFILES} + +install: + 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) + (cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ + ${OBSDAT:R}.${OBSCENE}.rot13 \ + ${DESTDIR}/usr/share/games/fortune/${OBSDAT:R}) -fortunes-o.dat: ${.TARGET:R} - ${.CURDIR}/../strfile/obj/strfile -rsx \ - ${.CURDIR}/${.TARGET:R} ${.TARGET} +fortunes-o.dat: ${.TARGET:R}.${OBSCENE}.rot13 + ${STRFILE} -rsx ${.CURDIR}/${.TARGET:R}.${OBSCENE}.rot13 ${.TARGET} fortunes.dat startrek.dat zippy.dat: ${.TARGET:R} - ${.CURDIR}/../strfile/obj/strfile -rs \ - ${.CURDIR}/${.TARGET:R} ${.TARGET} + ${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET} .include