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
|
|
|
|
|
|
|
|
# TO INSTALL THE POTENTIALLY OFFENSIVE FORTUNES, UNCOMMENT THE THREE
|
|
|
|
# LINES AND COMMENT OUT THE FOURTH LINE.
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# THE FOURTH LINE
|
|
|
|
#TYPE= fake
|
|
|
|
|
1998-09-17 08:52:40 +00:00
|
|
|
# Try to find these in the build tree
|
1998-09-19 06:14:11 +00:00
|
|
|
.if exists(/usr/games/strfile)
|
1998-09-17 08:52:40 +00:00
|
|
|
STRFILE=/usr/games/strfile
|
1998-09-19 06:14:11 +00:00
|
|
|
.else
|
|
|
|
STRFILE=../strfile/strfile
|
1998-09-17 08:52:40 +00:00
|
|
|
.endif
|
|
|
|
|
1998-09-19 06:14:11 +00:00
|
|
|
.if exists(/usr/games/caesar)
|
1998-09-17 08:52:40 +00:00
|
|
|
CAESAR=/usr/games/caesar
|
1998-09-19 06:14:11 +00:00
|
|
|
.else
|
|
|
|
CAESAR=../../caesar/caesar
|
1998-09-17 08:52:40 +00:00
|
|
|
.endif
|
|
|
|
|
1994-09-04 04:03:31 +00:00
|
|
|
CLEANFILES+=${BLDS}
|
|
|
|
|
1996-09-22 14:45:23 +00:00
|
|
|
all: ${FILES} ${BLDS}
|
1996-05-27 09:31:46 +00:00
|
|
|
|
|
|
|
install:
|
1997-02-09 02:52:41 +00:00
|
|
|
(cd ${.CURDIR} && ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} \
|
|
|
|
-m ${NOBINMODE} ${FILES} ${DESTDIR}${SHAREDIR}/games/fortune)
|
|
|
|
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} ${BLDS} \
|
|
|
|
${DESTDIR}${SHAREDIR}/games/fortune
|
1994-09-04 04:03:31 +00:00
|
|
|
|
1998-09-17 08:52:40 +00:00
|
|
|
fortunes.dat fortunes2.dat fortunes2-o.dat limerick.dat startrek.dat zippy.dat: ${STRFILE}
|
|
|
|
${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET}
|
1994-09-04 04:03:31 +00:00
|
|
|
|
1998-09-17 08:52:40 +00:00
|
|
|
fortunes-o.dat: fortunes-o ${STRFILE}
|
|
|
|
${STRFILE} -rsx fortunes-o ${.TARGET}
|
1994-09-04 04:03:31 +00:00
|
|
|
|
1998-09-17 08:52:40 +00:00
|
|
|
fortunes-o: fortunes-o.${TYPE} ${CAESAR}
|
|
|
|
${CAESAR} 13 < ${.ALLSRC} > ${.TARGET}
|
1994-09-04 04:03:31 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|