NetBSD/games/fortune/datfiles/Makefile

42 lines
1.4 KiB
Makefile
Raw Normal View History

1993-03-21 12:45:37 +03:00
# @(#)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
1993-04-09 13:37:17 +04:00
NORMDAT= fortunes.dat startrek.dat zippy.dat
OBSDAT= fortunes-o.dat
DATFILES= ${NORMDAT} ${OBSDAT}
1993-03-21 12:45:37 +03:00
CLEANFILES+=${DATFILES}
install: ${DATFILES}
1993-04-09 13:37:17 +04:00
@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} \
1993-03-21 12:45:37 +03:00
${DESTDIR}/usr/share/games/fortune
1993-04-09 13:37:17 +04:00
(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})
1993-03-21 12:45:37 +03:00
fortunes-o.dat: ${.TARGET:R}.${OBSCENE}.rot13
1993-03-21 12:45:37 +03:00
${.CURDIR}/../strfile/obj/strfile -rsx \
${.CURDIR}/${.TARGET:R}.${OBSCENE}.rot13 ${.TARGET}
1993-03-21 12:45:37 +03:00
fortunes.dat startrek.dat zippy.dat: ${.TARGET:R}
${.CURDIR}/../strfile/obj/strfile -rs \
${.CURDIR}/${.TARGET:R} ${.TARGET}
.include <bsd.prog.mk>