Makefile revision 1.5
1# @(#)Makefile 5.2 (Berkeley) 5/6/91 2 3# 4# set `OBSCENE' to "real" to have obscene fortunes installed, 5# fake to have a note stating that they're not installed 6# isntalled in their place 7# 8OBSCENE=real 9 10NORMDAT= fortunes.dat startrek.dat zippy.dat 11OBSDAT= fortunes-o.dat 12DATFILES= ${NORMDAT} ${OBSDAT} 13 14CLEANFILES+=${DATFILES} 15 16all: ${DATFILES} 17 18install: 19 @if [ ! -d ${DESTDIR}/usr/share/games/fortune ]; then \ 20 /bin/rm -f ${DESTDIR}/usr/share/games/fortune ; \ 21 mkdir -p ${DESTDIR}/usr/share/games/fortune ; \ 22 chown root.wheel ${DESTDIR}/usr/share/games/fortune ; \ 23 chmod 755 ${DESTDIR}/usr/share/games/fortune ; \ 24 else \ 25 true ; \ 26 fi 27 install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${DATFILES} \ 28 ${DESTDIR}/usr/share/games/fortune 29 (cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 30 ${NORMDAT:R} ${DESTDIR}/usr/share/games/fortune) 31 (cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 32 ${OBSDAT:R}.${OBSCENE}.rot13 \ 33 ${DESTDIR}/usr/share/games/fortune/${OBSDAT:R}) 34 35fortunes-o.dat: ${.TARGET:R}.${OBSCENE}.rot13 36 ${.CURDIR}/../strfile/obj/strfile -rsx \ 37 ${.CURDIR}/${.TARGET:R}.${OBSCENE}.rot13 ${.TARGET} 38 39fortunes.dat startrek.dat zippy.dat: ${.TARGET:R} 40 ${.CURDIR}/../strfile/obj/strfile -rs \ 41 ${.CURDIR}/${.TARGET:R} ${.TARGET} 42 43.include <bsd.prog.mk> 44