1994-09-04 04:03:31 +00:00
|
|
|
# @(#)Makefile 8.2 (Berkeley) 4/19/94
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
PATH=$$PATH:/usr/games strfile -rs ${.ALLSRC} ${.TARGET}
|
|
|
|
.endfor
|
1994-09-04 04:03:31 +00:00
|
|
|
|
1998-09-19 06:58:14 +00:00
|
|
|
fortunes-o.dat: fortunes-o
|
1998-10-17 11:44:28 +00:00
|
|
|
PATH=$$PATH:/usr/games strfile -rsx ${.ALLSRC} ${.TARGET}
|
1994-09-04 04:03:31 +00:00
|
|
|
|
1998-09-19 06:58:14 +00:00
|
|
|
fortunes-o: fortunes-o.${TYPE}
|
1998-10-17 11:44:28 +00:00
|
|
|
PATH=$$PATH:/usr/games caesar 13 < ${.ALLSRC} > ${.TARGET}
|
1994-09-04 04:03:31 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|