1 # from: @(#)Makefile 5.2 (Berkeley) 5/6/91 2 # $Id: Makefile,v 1.8 1994/01/04 21:40:31 pk 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 # 9 OBSCENE=real 10 11 NORMDAT= fortunes.dat startrek.dat zippy.dat 12 OBSDAT= fortunes-o.dat 13 DATFILES= ${NORMDAT} ${OBSDAT} 14 15 CLEANFILES+=${DATFILES} 16 17 STRFILE!=cd $(.CURDIR)/../strfile; \ 18 printf "xxx:\n\techo \$${.OBJDIR}/strfile\n" | make -r -s -f - xxx 19 20 all: ${DATFILES} 21 22 install: 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 32 fortunes-o.dat: ${.TARGET:R}.${OBSCENE}.rot13 33 ${STRFILE} -rsx ${.CURDIR}/${.TARGET:R}.${OBSCENE}.rot13 ${.TARGET} 34 35 fortunes.dat startrek.dat zippy.dat: ${.TARGET:R} 36 ${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET} 37 38 .include <bsd.prog.mk> 39