Home | History | Annotate | Line # | Download | only in datfiles
Makefile revision 1.10
      1 #	from: @(#)Makefile	5.2 (Berkeley) 5/6/91
      2 #	$Id: Makefile,v 1.10 1994/02/10 02:31:32 cgd Exp $
      3 
      4 #
      5 # set `OBSCENE' to "real" to have obscene fortunes installed,
      6 # fake to have a note stating that they're not installed
      7 # isntalled in their place
      8 #
      9 OBSCENE=real
     10 
     11 NORMDAT= fortunes.dat startrek.dat zippy.dat
     12 OBSDAT=	fortunes-o.dat
     13 DATFILES= ${NORMDAT} ${OBSDAT}
     14 
     15 CLEANFILES+=${DATFILES}
     16 
     17 STRFILE!=cd $(.CURDIR)/../strfile; \
     18 	printf "xxx:\n\techo \$${.OBJDIR}/strfile\n" | ${MAKE} -r -s -f - xxx
     19 
     20 all: ${DATFILES}
     21 
     22 install:
     23 	install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${DATFILES} \
     24 	    ${DESTDIR}/usr/share/games/fortune
     25 	(cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
     26 		${NORMDAT:R} ${DESTDIR}/usr/share/games/fortune)
     27 	(cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
     28 		${OBSDAT:R}.${OBSCENE}.rot13 \
     29 		${DESTDIR}/usr/share/games/fortune/${OBSDAT:R})
     30 
     31 fortunes-o.dat: ${.TARGET:R}.${OBSCENE}.rot13
     32 	${STRFILE} -rsx ${.CURDIR}/${.TARGET:R}.${OBSCENE}.rot13 ${.TARGET}
     33 
     34 fortunes.dat startrek.dat zippy.dat: ${.TARGET:R}
     35 	${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET}
     36 
     37 .include <bsd.prog.mk>
     38