2000-12-30 20:51:26 +03:00
|
|
|
# $NetBSD: Makefile,v 1.30 2000/12/30 17:51:26 sommerfeld Exp $
|
1995-03-23 11:28:00 +03:00
|
|
|
# @(#)Makefile 8.2 (Berkeley) 4/19/94
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1996-12-23 04:14:34 +03:00
|
|
|
.include <bsd.own.mk> # for INSTALL_OFFENSIVE_FORTUNES
|
1993-04-04 14:37:27 +04:00
|
|
|
|
2000-02-06 14:59:29 +03:00
|
|
|
SRCFILES= fortunes fortunes2 startrek zippy unamerican-o limerick \
|
|
|
|
netbsd
|
1996-12-23 04:14:34 +03:00
|
|
|
DATFILES= fortunes.dat fortunes2.dat startrek.dat zippy.dat \
|
|
|
|
fortunes-o fortunes-o.dat fortunes2-o fortunes2-o.dat \
|
2000-08-17 20:54:28 +04:00
|
|
|
limerick.dat limerick-o limerick-o.dat unamerican-o \
|
|
|
|
unamerican-o.dat netbsd.dat netbsd-o netbsd-o.dat
|
1993-04-09 13:37:17 +04:00
|
|
|
|
1997-10-10 17:04:33 +04:00
|
|
|
# TO AVOID INSTALLING THE POTENTIALLY OFFENSIVE FORTUNES, RUN 'make' with
|
1996-12-23 04:14:34 +03:00
|
|
|
# "INSTALL_OFFENSIVE_FORTUNES=NO", or set "INSTALL_OFFENSIVE_FORTUNES=NO"
|
|
|
|
# IN bsd.own.mk OR /etc/mk.conf.
|
1995-03-23 11:28:00 +03:00
|
|
|
|
1996-12-23 04:14:34 +03:00
|
|
|
INSTALL_OFFENSIVE_FORTUNES?= YES
|
|
|
|
.if (${INSTALL_OFFENSIVE_FORTUNES} == "YES")
|
|
|
|
TYPE= real
|
|
|
|
.else
|
|
|
|
TYPE= fake
|
|
|
|
.endif
|
1995-03-23 11:28:00 +03:00
|
|
|
|
1999-09-21 20:34:51 +04:00
|
|
|
CLEANFILES+=${DATFILES} limerick-o
|
1993-03-21 12:45:37 +03:00
|
|
|
|
2000-12-30 20:51:26 +03:00
|
|
|
STRFILEDIR!=cd $(.CURDIR)/../strfile; ${PRINTOBJDIR}
|
|
|
|
STRFILE=${STRFILEDIR}/strfile
|
1994-01-05 00:40:31 +03:00
|
|
|
|
1999-02-13 05:54:17 +03:00
|
|
|
.if ${MKSHARE} != "no"
|
1997-03-25 01:15:37 +03:00
|
|
|
FILES=${SRCFILES} ${DATFILES}
|
|
|
|
FILESDIR=/usr/share/games/fortune
|
1998-09-29 11:33:20 +04:00
|
|
|
.endif
|
1993-04-30 09:24:57 +04:00
|
|
|
|
2000-01-24 01:10:52 +03:00
|
|
|
realall: ${DATFILES}
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1996-12-23 04:14:34 +03:00
|
|
|
# Normal fortunes: build directly from data files.
|
|
|
|
|
2000-02-06 14:59:29 +03:00
|
|
|
fortunes.dat fortunes2.dat startrek.dat zippy.dat limerick.dat netbsd.dat:
|
1994-01-05 00:40:31 +03:00
|
|
|
${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET}
|
1996-12-23 04:14:34 +03:00
|
|
|
fortunes.dat: fortunes
|
|
|
|
fortunes2.dat: fortunes2
|
|
|
|
startrek.dat: startrek
|
|
|
|
zippy.dat: zippy
|
1999-09-12 14:15:46 +04:00
|
|
|
limerick.dat: limerick
|
2000-02-06 14:59:29 +03:00
|
|
|
netbsd.dat: netbsd
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1996-12-23 04:14:34 +03:00
|
|
|
# Obscene fortunes: we have to build source and data files
|
1995-03-23 11:28:00 +03:00
|
|
|
|
1995-04-22 11:19:03 +04:00
|
|
|
fortunes-o: fortunes-o.${TYPE}
|
1996-02-29 03:21:16 +03:00
|
|
|
tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET}
|
1996-12-23 04:14:34 +03:00
|
|
|
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}
|
|
|
|
|
1999-09-12 14:15:46 +04:00
|
|
|
limerick-o: limerick-o.${TYPE}
|
1996-12-23 04:14:34 +03:00
|
|
|
tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET}
|
1999-09-12 14:15:46 +04:00
|
|
|
limerick-o.dat: limerick-o
|
1996-12-23 04:14:34 +03:00
|
|
|
${STRFILE} -rsx ${.ALLSRC} ${.TARGET}
|
|
|
|
|
1999-09-12 14:15:46 +04:00
|
|
|
unamerican-o: unamerican-o.${TYPE}
|
1999-08-05 02:45:09 +04:00
|
|
|
tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET}
|
1999-09-12 14:15:46 +04:00
|
|
|
unamerican-o.dat: unamerican-o
|
1999-08-05 02:45:09 +04:00
|
|
|
${STRFILE} -rsx ${.ALLSRC} ${.TARGET}
|
|
|
|
|
2000-08-17 20:48:52 +04:00
|
|
|
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}
|
|
|
|
|
1995-03-23 11:28:00 +03:00
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
.include <bsd.prog.mk>
|