NetBSD/games/fortune/datfiles/Makefile

61 lines
1.6 KiB
Makefile
Raw Normal View History

1997-03-25 01:15:37 +03:00
# $NetBSD: Makefile,v 1.18 1997/03/24 22:15:43 christos Exp $
# @(#)Makefile 8.2 (Berkeley) 4/19/94
1993-03-21 12:45:37 +03:00
.include <bsd.own.mk> # for INSTALL_OFFENSIVE_FORTUNES
SRCFILES= fortunes fortunes2 startrek zippy
DATFILES= fortunes.dat fortunes2.dat startrek.dat zippy.dat \
fortunes-o fortunes-o.dat fortunes2-o fortunes2-o.dat \
limerick limerick.dat
1993-04-09 13:37:17 +04:00
# TO AVOID INSTALLIND THE POTENTIALLY OFFENSIVE FORTUNES, RUN 'make' with
# "INSTALL_OFFENSIVE_FORTUNES=NO", or set "INSTALL_OFFENSIVE_FORTUNES=NO"
# IN bsd.own.mk OR /etc/mk.conf.
INSTALL_OFFENSIVE_FORTUNES?= YES
.if (${INSTALL_OFFENSIVE_FORTUNES} == "YES")
TYPE= real
.else
TYPE= fake
.endif
CLEANFILES+=${DATFILES}
1993-03-21 12:45:37 +03:00
1994-01-05 00:40:31 +03:00
STRFILE!=cd $(.CURDIR)/../strfile; \
1995-10-23 00:04:42 +03:00
printf "xxx:\n\techo \$${.OBJDIR}/strfile\n" | \
${MAKE} -r -s -f - xxx | grep strfile
1994-01-05 00:40:31 +03:00
1997-03-25 01:15:37 +03:00
FILES=${SRCFILES} ${DATFILES}
FILESDIR=/usr/share/games/fortune
1997-03-25 01:15:37 +03:00
all: ${DATFILES}
1993-03-21 12:45:37 +03:00
# Normal fortunes: build directly from data files.
fortunes.dat fortunes2.dat startrek.dat zippy.dat:
1994-01-05 00:40:31 +03:00
${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET}
fortunes.dat: fortunes
fortunes2.dat: fortunes2
startrek.dat: startrek
zippy.dat: zippy
1993-03-21 12:45:37 +03:00
# Obscene fortunes: we have to build source and data files
fortunes-o: fortunes-o.${TYPE}
tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET}
fortunes-o.dat: fortunes-o
${STRFILE} -rsx ${.ALLSRC} ${.TARGET}
fortunes2-o: fortunes2-o.${TYPE}
tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET}
fortunes2-o.dat: fortunes2-o
${STRFILE} -rsx ${.ALLSRC} ${.TARGET}
limerick: limerick.${TYPE}
tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET}
limerick.dat: limerick
${STRFILE} -rsx ${.ALLSRC} ${.TARGET}
1993-03-21 12:45:37 +03:00
.include <bsd.prog.mk>