blob: be8c16b2625a085384040589ca97220269dfbcca (
plain) (
blame)
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
|
# @(#)Makefile 5.2 (Berkeley) 5/6/91
#
# set `OBSCENE' to "real" to have obscene fortunes installed,
# fake to have a note stating that they're not installed
# isntalled in their place
#
OBSCENE=real
NORMDAT= fortunes.dat startrek.dat zippy.dat
OBSDAT= fortunes-o.dat
DATFILES= ${NORMDAT} ${OBSDAT}
CLEANFILES+=${DATFILES}
install: ${DATFILES}
@if [ ! -d ${DESTDIR}/usr/share/games/fortune ]; then \
/bin/rm -f ${DESTDIR}/usr/share/games/fortune ; \
mkdir -p ${DESTDIR}/usr/share/games/fortune ; \
chown root.wheel ${DESTDIR}/usr/share/games/fortune ; \
chmod 755 ${DESTDIR}/usr/share/games/fortune ; \
else \
true ; \
fi
install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${DATFILES} \
${DESTDIR}/usr/share/games/fortune
(cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
${NORMDAT:R} ${DESTDIR}/usr/share/games/fortune)
(cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
${OBSDAT:R}.${OBSCENE}.rot13 \
${DESTDIR}/usr/share/games/fortune/${OBSDAT:R})
fortunes-o.dat: ${.TARGET:R}.${OBSCENE}.rot13
${.CURDIR}/../strfile/obj/strfile -rsx \
${.CURDIR}/${.TARGET:R}.${OBSCENE}.rot13 ${.TARGET}
fortunes.dat startrek.dat zippy.dat: ${.TARGET:R}
${.CURDIR}/../strfile/obj/strfile -rs \
${.CURDIR}/${.TARGET:R} ${.TARGET}
.include <bsd.prog.mk>
|