]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - fortune/datfiles/Makefile
Correct typos noted by Mike Long; PR#1654.
[bsdgames-darwin.git] / fortune / datfiles / Makefile
1 # $NetBSD: Makefile,v 1.13 1995/06/26 21:59:39 pk Exp $
2 # @(#)Makefile 8.2 (Berkeley) 4/19/94
3
4 SRCS= fortunes fortunes2 startrek zippy
5 BLDS= fortunes.dat fortunes2.dat startrek.dat zippy.dat \
6 fortunes-o fortunes-o.dat
7
8 # TO INSTALL THE POTENTIALLY OFFENSIVE FORTUNES, UNCOMMENT THE THREE
9 # LINES AND COMMENT OUT THE FOURTH LINE.
10
11 # THE THREE LINES
12 SRCS+= fortunes2-o limerick
13 BLDS+= fortunes2-o.dat limerick.dat
14 TYPE= real
15
16 # THE FOURTH LINE
17 #TYPE= fake
18
19 CLEANFILES+=${BLDS}
20
21 STRFILE!=cd $(.CURDIR)/../strfile; \
22 printf "xxx:\n\techo \$${.OBJDIR}/strfile\n" | ${MAKE} -r -s -f - xxx
23
24 all: ${BLDS}
25
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
31
32 fortunes.dat fortunes2.dat fortunes2-o.dat limerick.dat startrek.dat zippy.dat:
33 ${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET}
34
35 fortunes-o.dat: fortunes-o
36 ${STRFILE} -rsx fortunes-o ${.TARGET}
37
38 fortunes-o: fortunes-o.${TYPE}
39 /usr/games/caesar 13 < ${.ALLSRC} > ${.TARGET}
40
41 .include <bsd.prog.mk>