1994-09-04 04:03:31 +00:00
|
|
|
# @(#)Makefile 8.2 (Berkeley) 4/19/94
|
1999-10-02 12:31:56 +00:00
|
|
|
# $FreeBSD$
|
1994-09-04 04:03:31 +00:00
|
|
|
|
1996-09-22 14:45:23 +00:00
|
|
|
FILES= fortunes fortunes2 startrek zippy
|
1994-09-04 04:03:31 +00:00
|
|
|
BLDS= fortunes.dat fortunes2.dat startrek.dat zippy.dat \
|
|
|
|
fortunes-o fortunes-o.dat
|
|
|
|
|
1999-10-27 18:35:18 +00:00
|
|
|
# Pass all new entries by ${MAINTAINER} to preserve some semblance of
|
|
|
|
# humor in the fortune files. What's funny to you on 6 beers may not
|
|
|
|
# be funny to anyone else.
|
|
|
|
MAINTAINER= jkh
|
|
|
|
|
1998-10-17 11:44:28 +00:00
|
|
|
# TO AVOID INSTALLING THE POTENTIALLY OFFENSIVE FORTUNES, COMMENT OUT THE
|
|
|
|
# THREE LINES AND UNCOMMENT THE FOURTH LINE.
|
1994-09-04 04:03:31 +00:00
|
|
|
|
1998-10-17 11:44:28 +00:00
|
|
|
# THE THREE LINES:
|
1996-09-22 14:45:23 +00:00
|
|
|
FILES+= fortunes2-o limerick
|
1994-09-04 04:03:31 +00:00
|
|
|
BLDS+= fortunes2-o.dat limerick.dat
|
|
|
|
TYPE= real
|
|
|
|
|
1998-10-17 11:44:28 +00:00
|
|
|
# THE FOURTH LINE:
|
1994-09-04 04:03:31 +00:00
|
|
|
#TYPE= fake
|
|
|
|
|
|
|
|
CLEANFILES+=${BLDS}
|
|
|
|
|
1998-10-17 11:44:28 +00:00
|
|
|
all: ${BLDS}
|
1996-05-27 09:31:46 +00:00
|
|
|
|
1998-10-17 11:44:28 +00:00
|
|
|
beforeinstall:
|
1997-02-09 02:52:41 +00:00
|
|
|
(cd ${.CURDIR} && ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} \
|
1998-10-17 11:44:28 +00:00
|
|
|
-m ${NOBINMODE} ${FILES} ${DESTDIR}${SHAREDIR}/games/fortune)
|
1997-02-09 02:52:41 +00:00
|
|
|
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} ${BLDS} \
|
|
|
|
${DESTDIR}${SHAREDIR}/games/fortune
|
1994-09-04 04:03:31 +00:00
|
|
|
|
1998-10-17 11:44:28 +00:00
|
|
|
.for f in fortunes fortunes2 fortunes2-o limerick startrek zippy
|
|
|
|
$f.dat: $f
|
1999-11-05 08:17:53 +00:00
|
|
|
PATH=$$PATH:/usr/games:${.OBJDIR}/../strfile \
|
1999-10-28 05:22:05 +00:00
|
|
|
strfile -Crs ${.ALLSRC} ${.TARGET}
|
1998-10-17 11:44:28 +00:00
|
|
|
.endfor
|
1994-09-04 04:03:31 +00:00
|
|
|
|
1998-09-19 06:58:14 +00:00
|
|
|
fortunes-o.dat: fortunes-o
|
1999-10-03 13:38:53 +00:00
|
|
|
PATH=$$PATH:/usr/games:${.OBJDIR}/../strfile \
|
1999-10-28 05:22:05 +00:00
|
|
|
strfile -Crsx ${.ALLSRC} ${.TARGET}
|
1994-09-04 04:03:31 +00:00
|
|
|
|
1998-09-19 06:58:14 +00:00
|
|
|
fortunes-o: fortunes-o.${TYPE}
|
1999-12-23 19:09:59 +00:00
|
|
|
tr a-zA-Z n-za-mN-ZA-M < ${.ALLSRC} > ${.TARGET}
|
1994-09-04 04:03:31 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|