blob: 40c86203cab9ac674a9bdbfb72a5e4425a2a29d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# $OpenBSD: Makefile,v 1.6 2003/09/26 03:08:44 beck Exp $
# $NetBSD: Makefile,v 1.15 1996/02/29 00:21:16 jtc Exp $
# @(#)Makefile 8.2 (Berkeley) 4/19/94
SRCS= fortunes fortunes2 startrek zippy recipes
BLDS= fortunes.dat fortunes2.dat startrek.dat zippy.dat \
fortunes-o fortunes-o.dat recipes.dat
# TO INSTALL THE POTENTIALLY OFFENSIVE FORTUNES, UNCOMMENT THE THREE
# LINES AND COMMENT OUT THE FOURTH LINE.
# THE THREE LINES
SRCS+= fortunes2-o limerick
BLDS+= fortunes2-o.dat limerick.dat
TYPE= real
# THE FOURTH LINE
#TYPE= fake
CLEANFILES+=${BLDS}
STRFILE!=cd $(.CURDIR)/../strfile; \
printf "xxx:\n\techo \$${.OBJDIR}/strfile\n" | \
${MAKE} -r -s -f - xxx | grep strfile
all: ${BLDS}
install: ${SRCS} ${BLDS}
(cd ${.CURDIR} && ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
${SRCS} ${DESTDIR}/usr/share/games/fortune)
${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${BLDS} \
${DESTDIR}/usr/share/games/fortune
fortunes.dat fortunes2.dat fortunes2-o.dat limerick.dat startrek.dat zippy.dat recipes.dat:
${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET}
fortunes-o.dat: fortunes-o
${STRFILE} -rsx fortunes-o ${.TARGET}
fortunes-o: fortunes-o.${TYPE}
tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET}
.include <bsd.prog.mk>
|