1 # $NetBSD: Makefile,v 1.15 1996/02/29 00:21:16 jtc 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" | \
23 ${MAKE} -r -s -f - xxx | grep strfile
27 install: ${SRCS} ${BLDS}
28 (cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
29 ${SRCS} ${DESTDIR}/usr/share/games/fortune)
30 install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${BLDS} \
31 ${DESTDIR}/usr/share/games/fortune
33 fortunes.dat fortunes2.dat fortunes2-o.dat limerick.dat startrek.dat zippy.dat:
34 ${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET}
36 fortunes-o.dat: fortunes-o
37 ${STRFILE} -rsx fortunes-o ${.TARGET}
39 fortunes-o: fortunes-o.${TYPE}
40 tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET}
42 .include <bsd.prog.mk>