NetBSD/games/fortune/datfiles/Makefile

38 lines
1.1 KiB
Makefile
Raw Normal View History

1993-08-01 09:37:30 +04:00
# from: @(#)Makefile 5.2 (Berkeley) 5/6/91
1994-02-10 05:31:32 +03:00
# $Id: Makefile,v 1.10 1994/02/10 02:31:32 cgd Exp $
1993-03-21 12:45:37 +03:00
#
# 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}
1994-01-05 00:40:31 +03:00
STRFILE!=cd $(.CURDIR)/../strfile; \
1994-01-24 21:39:52 +03:00
printf "xxx:\n\techo \$${.OBJDIR}/strfile\n" | ${MAKE} -r -s -f - xxx
1994-01-05 00:40:31 +03:00
all: ${DATFILES}
install:
1993-07-18 23:17:22 +04:00
install ${COPY} -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
1994-01-05 00:40:31 +03:00
${STRFILE} -rsx ${.CURDIR}/${.TARGET:R}.${OBSCENE}.rot13 ${.TARGET}
1993-03-21 12:45:37 +03:00
fortunes.dat startrek.dat zippy.dat: ${.TARGET:R}
1994-01-05 00:40:31 +03:00
${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET}
1993-03-21 12:45:37 +03:00
.include <bsd.prog.mk>