]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - boggle/Makefile
Support MAKEVERBOSE. (Some host tools still generate verbose runtime messages)
[bsdgames-darwin.git] / boggle / Makefile
index 7e2f924bfbb26bf892912a1cfa4f9363716b6e76..bb12f31ffee21f9be7faea5a7ef72123081b3655 100644 (file)
@@ -1,21 +1,43 @@
-# $NetBSD: Makefile,v 1.3 1995/03/01 09:07:54 glass Exp $
+#      $NetBSD: Makefile,v 1.20 2003/10/19 01:01:44 lukem 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:
-       ${MKDICT} < /usr/share/dict/words > \
-           ${DESTDIR}/usr/share/games/boggle/dictionary
-       ${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=${NETBSDSRCDIR}/share/dict/web2
+DICTFILES=dictionary 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}
+
+dictionary: ${WORDS} ${MKDICT}
+       ${_MKMSG} " create  ${.TARGET}"
+       ${_MKCMD}\
+       rm -f ${.TARGET}
+       ${_MKCMD}\
+       ${MKDICT} < ${WORDS} > ${.TARGET}
+
+dictindex: dictionary ${MKINDEX}
+       ${_MKMSG} " create  ${.TARGET}"
+       ${_MKCMD}\
+       rm -f ${.TARGET}
+       ${_MKCMD}\
+       ${MKINDEX} < dictionary > ${.TARGET}
 
+.include <bsd.prog.mk>
 .include <bsd.subdir.mk>