X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/f0356cf871408e3278470f30bdf03fa796c66c25..02826c034bbdccc7eba0474188f4dc106bc38d07:/fortune/datfiles/Makefile diff --git a/fortune/datfiles/Makefile b/fortune/datfiles/Makefile index 1817cf04..dae9b484 100644 --- a/fortune/datfiles/Makefile +++ b/fortune/datfiles/Makefile @@ -1,12 +1,14 @@ -# $NetBSD: Makefile,v 1.21 1998/09/29 07:33:21 lukem Exp $ +# $NetBSD: Makefile,v 1.30 2000/12/30 17:51:26 sommerfeld Exp $ # @(#)Makefile 8.2 (Berkeley) 4/19/94 .include # for INSTALL_OFFENSIVE_FORTUNES -SRCFILES= fortunes fortunes2 startrek zippy +SRCFILES= fortunes fortunes2 startrek zippy unamerican-o limerick \ + netbsd DATFILES= fortunes.dat fortunes2.dat startrek.dat zippy.dat \ fortunes-o fortunes-o.dat fortunes2-o fortunes2-o.dat \ - limerick limerick.dat + limerick.dat limerick-o limerick-o.dat unamerican-o \ + unamerican-o.dat netbsd.dat netbsd-o netbsd-o.dat # TO AVOID INSTALLING THE POTENTIALLY OFFENSIVE FORTUNES, RUN 'make' with # "INSTALL_OFFENSIVE_FORTUNES=NO", or set "INSTALL_OFFENSIVE_FORTUNES=NO" @@ -19,26 +21,28 @@ TYPE= real TYPE= fake .endif -CLEANFILES+=${DATFILES} +CLEANFILES+=${DATFILES} limerick-o -STRFILE!=cd $(.CURDIR)/../strfile; \ - printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/strfile\n" | ${MAKE} -s -f- +STRFILEDIR!=cd $(.CURDIR)/../strfile; ${PRINTOBJDIR} +STRFILE=${STRFILEDIR}/strfile -.if !defined(NOSHARE) +.if ${MKSHARE} != "no" FILES=${SRCFILES} ${DATFILES} FILESDIR=/usr/share/games/fortune .endif -all: ${DATFILES} +realall: ${DATFILES} # Normal fortunes: build directly from data files. -fortunes.dat fortunes2.dat startrek.dat zippy.dat: +fortunes.dat fortunes2.dat startrek.dat zippy.dat limerick.dat netbsd.dat: ${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET} fortunes.dat: fortunes fortunes2.dat: fortunes2 startrek.dat: startrek zippy.dat: zippy +limerick.dat: limerick +netbsd.dat: netbsd # Obscene fortunes: we have to build source and data files @@ -52,9 +56,19 @@ fortunes2-o: fortunes2-o.${TYPE} fortunes2-o.dat: fortunes2-o ${STRFILE} -rsx ${.ALLSRC} ${.TARGET} -limerick: limerick.${TYPE} +limerick-o: limerick-o.${TYPE} tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET} -limerick.dat: limerick +limerick-o.dat: limerick-o + ${STRFILE} -rsx ${.ALLSRC} ${.TARGET} + +unamerican-o: unamerican-o.${TYPE} + tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET} +unamerican-o.dat: unamerican-o + ${STRFILE} -rsx ${.ALLSRC} ${.TARGET} + +netbsd-o: netbsd-o.${TYPE} + tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET} +netbsd-o.dat: netbsd-o ${STRFILE} -rsx ${.ALLSRC} ${.TARGET}