1# @(#)Makefile 5.4 (Berkeley) 07/19/92 2 3# If TYPE is real, the real obscene fortunes get installed. If TYPE is 4# fake, they don't. See how easy that was? 5 6TYPE= real 7#TYPE= fake 8 9SRCS= fortunes startrek zippy 10BLDS= fortunes.dat startrek.dat zippy.dat fortunes-o fortunes-o.dat 11CLEANFILES+=${BLDS} 12 13install: ${SRCS} ${BLDS} 14 (cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 15 ${SRCS} ${DESTDIR}/usr/share/games/fortune) 16 install -o ${BINOWN} -g ${BINGRP} -m 444 ${BLDS} \ 17 ${DESTDIR}/usr/share/games/fortune 18 19fortunes.dat startrek.dat zippy.dat: 20 ${.CURDIR}/../strfile/obj/strfile -rs ${.CURDIR}/${.TARGET:R} ${.TARGET} 21 22fortunes-o.dat: fortunes-o 23 ${.CURDIR}/../strfile/obj/strfile -rsx fortunes-o ${.TARGET} 24 25fortunes-o: fortunes-o.${TYPE} 26 /usr/games/caesar 13 < ${.CURDIR}/${.ALLSRC} > ${.TARGET} 27 28.include <bsd.prog.mk> 29