1 # @(#)Makefile 8.2 (Berkeley) 4/19/94
3 FILES= fortunes fortunes2 startrek zippy
4 BLDS= fortunes.dat fortunes2.dat startrek.dat zippy.dat \
5 fortunes-o fortunes-o.dat
7 # TO INSTALL THE POTENTIALLY OFFENSIVE FORTUNES, UNCOMMENT THE THREE
8 # LINES AND COMMENT OUT THE FOURTH LINE.
11 FILES+= fortunes2-o limerick
12 BLDS+= fortunes2-o.dat limerick.dat
18 .if exists(${.OBJDIR}/../../caesar/caesar)
19 CAESAR=${.OBJDIR}/../../caesar/caesar
20 .elif exists(${.CURDIR}/../../caesar/caesar)
21 CAESAR=${.CURDIR}/../../caesar/caesar
23 CAESAR=/usr/games/caesar
26 .if exists(${.OBJDIR}/../strfile/strfile)
27 STRFILE=${.OBJDIR}/../strfile/strfile
28 .elif exists(${.CURDIR}/../strfile/strfile)
29 STRFILE=${.CURDIR}/../strfile/strfile
31 STRFILE=/usr/games/strfile
39 (cd ${.CURDIR} && ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} \
40 -m ${NOBINMODE} ${FILES} ${DESTDIR}${SHAREDIR}/games/fortune)
41 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} ${BLDS} \
42 ${DESTDIR}${SHAREDIR}/games/fortune
44 fortunes.dat fortunes2.dat fortunes2-o.dat limerick.dat startrek.dat zippy.dat:
45 ${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET}
47 fortunes-o.dat: fortunes-o
48 ${STRFILE} -rsx fortunes-o ${.TARGET}
50 fortunes-o: fortunes-o.${TYPE}
51 ${CAESAR} 13 < ${.ALLSRC} > ${.TARGET}
53 .include <bsd.prog.mk>