Makefile revision 1.5
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.4Scgdall: ${DATFILES}
171.4Scgd
181.4Scgdinstall:
191.3Scgd	@if [ ! -d ${DESTDIR}/usr/share/games/fortune ]; then \
201.3Scgd                /bin/rm -f ${DESTDIR}/usr/share/games/fortune ; \
211.3Scgd                mkdir -p ${DESTDIR}/usr/share/games/fortune ; \
221.3Scgd                chown root.wheel ${DESTDIR}/usr/share/games/fortune ; \
231.3Scgd                chmod 755 ${DESTDIR}/usr/share/games/fortune ; \
241.3Scgd        else \
251.3Scgd                true ; \
261.3Scgd        fi
271.5Smycroft	install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${DATFILES} \
281.1Scgd	    ${DESTDIR}/usr/share/games/fortune
291.3Scgd	(cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
301.3Scgd		${NORMDAT:R} ${DESTDIR}/usr/share/games/fortune)
311.3Scgd	(cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
321.3Scgd		${OBSDAT:R}.${OBSCENE}.rot13 \
331.3Scgd		${DESTDIR}/usr/share/games/fortune/${OBSDAT:R})
341.1Scgd
351.2Scgdfortunes-o.dat: ${.TARGET:R}.${OBSCENE}.rot13
361.1Scgd	${.CURDIR}/../strfile/obj/strfile -rsx \
371.2Scgd	    ${.CURDIR}/${.TARGET:R}.${OBSCENE}.rot13 ${.TARGET}
381.1Scgd
391.1Scgdfortunes.dat startrek.dat zippy.dat: ${.TARGET:R}
401.1Scgd	${.CURDIR}/../strfile/obj/strfile -rs \
411.1Scgd	    ${.CURDIR}/${.TARGET:R} ${.TARGET}
421.1Scgd
431.1Scgd.include <bsd.prog.mk>
44