X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/48236419b31d93d9fca6ef3aad010044062dcb41..4569c070f2bf0133ace14d1e5611848681d892d1:/fortune/datfiles/Makefile diff --git a/fortune/datfiles/Makefile b/fortune/datfiles/Makefile index d70c5115..d92f8ba4 100644 --- a/fortune/datfiles/Makefile +++ b/fortune/datfiles/Makefile @@ -1,5 +1,5 @@ # from: @(#)Makefile 5.2 (Berkeley) 5/6/91 -# $Id: Makefile,v 1.6 1993/08/01 05:45:27 mycroft Exp $ +# $Id: Makefile,v 1.10 1994/02/10 02:31:32 cgd Exp $ # # set `OBSCENE' to "real" to have obscene fortunes installed, @@ -14,17 +14,12 @@ DATFILES= ${NORMDAT} ${OBSDAT} CLEANFILES+=${DATFILES} +STRFILE!=cd $(.CURDIR)/../strfile; \ + printf "xxx:\n\techo \$${.OBJDIR}/strfile\n" | ${MAKE} -r -s -f - xxx + all: ${DATFILES} install: - @if [ ! -d ${DESTDIR}/usr/share/games/fortune ]; then \ - /bin/rm -f ${DESTDIR}/usr/share/games/fortune ; \ - mkdir -p ${DESTDIR}/usr/share/games/fortune ; \ - chown root.wheel ${DESTDIR}/usr/share/games/fortune ; \ - chmod 755 ${DESTDIR}/usr/share/games/fortune ; \ - else \ - true ; \ - fi install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${DATFILES} \ ${DESTDIR}/usr/share/games/fortune (cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ @@ -34,11 +29,9 @@ install: ${DESTDIR}/usr/share/games/fortune/${OBSDAT:R}) fortunes-o.dat: ${.TARGET:R}.${OBSCENE}.rot13 - ${.CURDIR}/../strfile/obj/strfile -rsx \ - ${.CURDIR}/${.TARGET:R}.${OBSCENE}.rot13 ${.TARGET} + ${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