1 # @(#)Makefile 5.2 (Berkeley) 5/6/91
4 # set `OBSCENE' to "real" to have obscene fortunes installed,
5 # fake to have a note stating that they're not installed
6 # isntalled in their place
10 NORMDAT= fortunes.dat startrek.dat zippy.dat
11 OBSDAT= fortunes-o.dat
12 DATFILES= ${NORMDAT} ${OBSDAT}
14 CLEANFILES+=${DATFILES}
19 @if [ ! -d ${DESTDIR}/usr/share/games/fortune ]; then \
20 /bin/rm -f ${DESTDIR}/usr/share/games/fortune ; \
21 mkdir -p ${DESTDIR}/usr/share/games/fortune ; \
22 chown root.wheel ${DESTDIR}/usr/share/games/fortune ; \
23 chmod 755 ${DESTDIR}/usr/share/games/fortune ; \
27 install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${DATFILES} \
28 ${DESTDIR}/usr/share/games/fortune
29 (cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
30 ${NORMDAT:R} ${DESTDIR}/usr/share/games/fortune)
31 (cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
32 ${OBSDAT:R}.${OBSCENE}.rot13 \
33 ${DESTDIR}/usr/share/games/fortune/${OBSDAT:R})
35 fortunes-o.dat: ${.TARGET:R}.${OBSCENE}.rot13
36 ${.CURDIR}/../strfile/obj/strfile -rsx \
37 ${.CURDIR}/${.TARGET:R}.${OBSCENE}.rot13 ${.TARGET}
39 fortunes.dat startrek.dat zippy.dat: ${.TARGET:R}
40 ${.CURDIR}/../strfile/obj/strfile -rs \
41 ${.CURDIR}/${.TARGET:R} ${.TARGET}
43 .include <bsd.prog.mk>