]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - boggle/Makefile
Be more verbose about teleports, and fix a minor problem in autobot mode.
[bsdgames-darwin.git] / boggle / Makefile
index 12718421befc14f3d1ab096838778660b297b113..4543e37fcb579b0cfbb0b24ece390da3ad939474 100644 (file)
@@ -1,23 +1,37 @@
-#      $NetBSD: Makefile,v 1.6 1996/09/26 00:04:42 mrg Exp $
+#      $NetBSD: Makefile,v 1.17 2000/12/30 17:51:26 sommerfeld Exp $
 #      @(#)Makefile    8.1 (Berkeley) 6/11/93
 
+.include <bsd.own.mk>
+
 SUBDIR=        boggle mkdict mkindex
 
-MKDICT!=cd $(.CURDIR)/mkdict; \
-       printf "xxx:\n\techo \$${.OBJDIR}/mkdict\n" | ${MAKE} -r -s -f - xxx
-MKINDEX!=cd $(.CURDIR)/mkindex; \
-       printf "xxx:\n\techo \$${.OBJDIR}/mkindex\n" | ${MAKE} -r -s -f - xxx
-
-beforeinstall:
-       rm -f ${DESTDIR}/usr/share/games/boggle/dictionary
-       ${MKDICT} < ${DESTDIR}/usr/share/dict/words > \
-           ${DESTDIR}/usr/share/games/boggle/dictionary
-       rm -f ${DESTDIR}/usr/share/games/boggle/dictindex
-       ${MKINDEX} < ${DESTDIR}/usr/share/games/boggle/dictionary > \
-           ${DESTDIR}/usr/share/games/boggle/dictindex
-       chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/share/games/boggle/dictionary
-       chmod 444 ${DESTDIR}/usr/share/games/boggle/dictionary
-       chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/share/games/boggle/dictindex
-       chmod 444 ${DESTDIR}/usr/share/games/boggle/dictindex
+MKDICTDIR!= cd $(.CURDIR)/mkdict; ${PRINTOBJDIR}
+MKDICT=${MKDICTDIR}/mkdict
+MKINDEXDIR!= cd $(.CURDIR)/mkindex; ${PRINTOBJDIR}
+MKINDEX=${MKINDEXDIR}/mkindex
+WORDS=${.CURDIR}/../../share/dict/web2
+DICTFILES=${.OBJDIR}/dictionary ${.OBJDIR}/dictindex
+.if ${MKSHARE} != "no"
+FILES=${DICTFILES}
+FILESDIR=/usr/share/games/boggle
+.endif
+CLEANFILES+=${DICTFILES}
+
+realall: ${FILES}
+
+${MKDICT}:
+       @cd ${.CURDIR}/mkdict && ${MAKE}
+
+${MKINDEX}:
+       @cd ${.CURDIR}/mkindex && ${MAKE}
+
+${.OBJDIR}/dictionary: ${WORDS} ${MKDICT}
+       rm -f ${.TARGET}
+       ${MKDICT} < ${WORDS} > ${.TARGET}
+
+${.OBJDIR}/dictindex: ${.OBJDIR}/dictionary ${MKINDEX}
+       rm -f ${.TARGET}
+       ${MKINDEX} < ${.OBJDIR}/dictionary > ${.TARGET}
 
+.include <bsd.prog.mk>
 .include <bsd.subdir.mk>