Makefile revision 1.9
1# from: @(#)Makefile 5.2 (Berkeley) 5/6/91 2# $Id: Makefile,v 1.9 1994/01/24 18:46:59 cgd Exp $ 3 4# 5# set `OBSCENE' to "real" to have obscene fortunes installed, 6# fake to have a note stating that they're not installed 7# isntalled in their place 8# 9OBSCENE=real 10 11NORMDAT= fortunes.dat startrek.dat zippy.dat 12OBSDAT= fortunes-o.dat 13DATFILES= ${NORMDAT} ${OBSDAT} 14 15CLEANFILES+=${DATFILES} 16 17STRFILE!=cd $(.CURDIR)/../strfile; \ 18 printf "xxx:\n\techo \$${.OBJDIR}/strfile\n" | ${MAKE} -r -s -f - xxx 19 20all: ${DATFILES} 21 22install: 23 @install -d -o root -g wheel -m 755 ${DESTDIR}/usr/share/games/fortune 24 install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${DATFILES} \ 25 ${DESTDIR}/usr/share/games/fortune 26 (cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 27 ${NORMDAT:R} ${DESTDIR}/usr/share/games/fortune) 28 (cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 29 ${OBSDAT:R}.${OBSCENE}.rot13 \ 30 ${DESTDIR}/usr/share/games/fortune/${OBSDAT:R}) 31 32fortunes-o.dat: ${.TARGET:R}.${OBSCENE}.rot13 33 ${STRFILE} -rsx ${.CURDIR}/${.TARGET:R}.${OBSCENE}.rot13 ${.TARGET} 34 35fortunes.dat startrek.dat zippy.dat: ${.TARGET:R} 36 ${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET} 37 38.include <bsd.prog.mk> 39