-# @(#)Makefile 5.2 (Berkeley) 5/6/91
-
-#
-# set `OBSCENE' to "real" to have obscene fortunes installed,
-# fake to have a note stating that they're not installed
-# isntalled in their place
-#
-OBSCENE=real
-
-NORMDAT= fortunes.dat startrek.dat zippy.dat
-OBSDAT= fortunes-o.dat
-DATFILES= ${NORMDAT} ${OBSDAT}
-
-CLEANFILES+=${DATFILES}
-
-all: ${DATFILES}
-
-install:
- @if [ ! -d ${DESTDIR}/usr/share/games/fortune ]; then \
- /bin/rm -f ${DESTDIR}/usr/share/games/fortune ; \
- mkdir -p ${DESTDIR}/usr/share/games/fortune ; \
- chown root.wheel ${DESTDIR}/usr/share/games/fortune ; \
- chmod 755 ${DESTDIR}/usr/share/games/fortune ; \
- else \
- true ; \
- fi
- install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${DATFILES} \
- ${DESTDIR}/usr/share/games/fortune
- (cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
- ${NORMDAT:R} ${DESTDIR}/usr/share/games/fortune)
+# $NetBSD: Makefile,v 1.11 1995/03/23 08:28:33 cgd Exp $
+# @(#)Makefile 8.2 (Berkeley) 4/19/94
+
+SRCS= fortunes fortunes2 startrek zippy
+BLDS= fortunes.dat fortunes2.dat startrek.dat zippy.dat \
+ fortunes-o fortunes-o.dat
+
+# TO INSTALL THE POTENTIALLY OFFENSIVE FORTUNES, UNCOMMENT THE THREE
+# LINES AND COMMENT OUT THE FOURTH LINE.
+
+# THE THREE LINES
+SRCS+= fortunes2-o limerick
+BLDS+= fortunes2-o.dat limerick.dat
+TYPE= real
+
+# THE FOURTH LINE
+#TYPE= fake
+
+CLEANFILES+=${BLDS}
+
+STRFILE!=cd $(.CURDIR)/../strfile; \
+ printf "xxx:\n\techo \$${.OBJDIR}/strfile\n" | ${MAKE} -r -s -f - xxx
+
+all: ${BLDS}
+
+install: ${SRCS} ${BLDS}