1 # $NetBSD: Makefile,v 1.13 1995/06/26 21:59:39 pk Exp $
2 # @(#)Makefile 8.2 (Berkeley) 4/19/94
4 SRCS= fortunes fortunes2 startrek zippy
5 BLDS= fortunes.dat fortunes2.dat startrek.dat zippy.dat \
6 fortunes-o fortunes-o.dat
8 # TO INSTALL THE POTENTIALLY OFFENSIVE FORTUNES, UNCOMMENT THE THREE
9 # LINES AND COMMENT OUT THE FOURTH LINE.
12 SRCS+= fortunes2-o limerick
13 BLDS+= fortunes2-o.dat limerick.dat
21 STRFILE!=cd $(.CURDIR)/../strfile; \
22 printf "xxx:\n\techo \$${.OBJDIR}/strfile\n" | ${MAKE} -r -s -f - xxx
26 install: ${SRCS} ${BLDS}
27 (cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
28 ${SRCS} ${DESTDIR}/usr/share/games/fortune)
29 install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${BLDS} \
30 ${DESTDIR}/usr/share/games/fortune
32 fortunes.dat fortunes2.dat fortunes2-o.dat limerick.dat startrek.dat zippy.dat:
33 ${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET}
35 fortunes-o.dat: fortunes-o
36 ${STRFILE} -rsx fortunes-o ${.TARGET}
38 fortunes-o: fortunes-o.${TYPE}
39 /usr/games/caesar 13 < ${.ALLSRC} > ${.TARGET}
41 .include <bsd.prog.mk>