Makefile revision 1.3
11.1Scgd# @(#)Makefile 5.2 (Berkeley) 5/6/91 21.1Scgd 31.2Scgd# 41.2Scgd# set `OBSCENE' to "real" to have obscene fortunes installed, 51.2Scgd# fake to have a note stating that they're not installed 61.2Scgd# isntalled in their place 71.2Scgd# 81.2ScgdOBSCENE=real 91.2Scgd 101.3ScgdNORMDAT= fortunes.dat startrek.dat zippy.dat 111.3ScgdOBSDAT= fortunes-o.dat 121.3ScgdDATFILES= ${NORMDAT} ${OBSDAT} 131.3Scgd 141.1ScgdCLEANFILES+=${DATFILES} 151.1Scgd 161.1Scgdinstall: ${DATFILES} 171.3Scgd @if [ ! -d ${DESTDIR}/usr/share/games/fortune ]; then \ 181.3Scgd /bin/rm -f ${DESTDIR}/usr/share/games/fortune ; \ 191.3Scgd mkdir -p ${DESTDIR}/usr/share/games/fortune ; \ 201.3Scgd chown root.wheel ${DESTDIR}/usr/share/games/fortune ; \ 211.3Scgd chmod 755 ${DESTDIR}/usr/share/games/fortune ; \ 221.3Scgd else \ 231.3Scgd true ; \ 241.3Scgd fi 251.3Scgd install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${DATFILES} \ 261.1Scgd ${DESTDIR}/usr/share/games/fortune 271.3Scgd (cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 281.3Scgd ${NORMDAT:R} ${DESTDIR}/usr/share/games/fortune) 291.3Scgd (cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 301.3Scgd ${OBSDAT:R}.${OBSCENE}.rot13 \ 311.3Scgd ${DESTDIR}/usr/share/games/fortune/${OBSDAT:R}) 321.1Scgd 331.2Scgdfortunes-o.dat: ${.TARGET:R}.${OBSCENE}.rot13 341.1Scgd ${.CURDIR}/../strfile/obj/strfile -rsx \ 351.2Scgd ${.CURDIR}/${.TARGET:R}.${OBSCENE}.rot13 ${.TARGET} 361.1Scgd 371.1Scgdfortunes.dat startrek.dat zippy.dat: ${.TARGET:R} 381.1Scgd ${.CURDIR}/../strfile/obj/strfile -rs \ 391.1Scgd ${.CURDIR}/${.TARGET:R} ${.TARGET} 401.1Scgd 411.1Scgd.include <bsd.prog.mk> 42