Makefile revision 1.6
11.6Smycroft#	from: @(#)Makefile	5.2 (Berkeley) 5/6/91
21.6Smycroft#	$Id: Makefile,v 1.6 1993/08/01 05:45:27 mycroft Exp $
31.1Scgd
41.2Scgd#
51.2Scgd# set `OBSCENE' to "real" to have obscene fortunes installed,
61.2Scgd# fake to have a note stating that they're not installed
71.2Scgd# isntalled in their place
81.2Scgd#
91.2ScgdOBSCENE=real
101.2Scgd
111.3ScgdNORMDAT= fortunes.dat startrek.dat zippy.dat
121.3ScgdOBSDAT=	fortunes-o.dat
131.3ScgdDATFILES= ${NORMDAT} ${OBSDAT}
141.3Scgd
151.1ScgdCLEANFILES+=${DATFILES}
161.1Scgd
171.4Scgdall: ${DATFILES}
181.4Scgd
191.4Scgdinstall:
201.3Scgd	@if [ ! -d ${DESTDIR}/usr/share/games/fortune ]; then \
211.3Scgd                /bin/rm -f ${DESTDIR}/usr/share/games/fortune ; \
221.3Scgd                mkdir -p ${DESTDIR}/usr/share/games/fortune ; \
231.3Scgd                chown root.wheel ${DESTDIR}/usr/share/games/fortune ; \
241.3Scgd                chmod 755 ${DESTDIR}/usr/share/games/fortune ; \
251.3Scgd        else \
261.3Scgd                true ; \
271.3Scgd        fi
281.5Smycroft	install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${DATFILES} \
291.1Scgd	    ${DESTDIR}/usr/share/games/fortune
301.3Scgd	(cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
311.3Scgd		${NORMDAT:R} ${DESTDIR}/usr/share/games/fortune)
321.3Scgd	(cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
331.3Scgd		${OBSDAT:R}.${OBSCENE}.rot13 \
341.3Scgd		${DESTDIR}/usr/share/games/fortune/${OBSDAT:R})
351.1Scgd
361.2Scgdfortunes-o.dat: ${.TARGET:R}.${OBSCENE}.rot13
371.1Scgd	${.CURDIR}/../strfile/obj/strfile -rsx \
381.2Scgd	    ${.CURDIR}/${.TARGET:R}.${OBSCENE}.rot13 ${.TARGET}
391.1Scgd
401.1Scgdfortunes.dat startrek.dat zippy.dat: ${.TARGET:R}
411.1Scgd	${.CURDIR}/../strfile/obj/strfile -rs \
421.1Scgd	    ${.CURDIR}/${.TARGET:R} ${.TARGET}
431.1Scgd
441.1Scgd.include <bsd.prog.mk>
45