X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/21220f7e53a5408b92384c2a854243ebe7a918e6..49c27d0ce015c82ce7d2e4c36edf731592406617:/boggle/Makefile diff --git a/boggle/Makefile b/boggle/Makefile index 700a77bf..59d2f358 100644 --- a/boggle/Makefile +++ b/boggle/Makefile @@ -1,23 +1,39 @@ -# $NetBSD: Makefile,v 1.5 1995/04/20 02:06:32 mycroft Exp $ +# $NetBSD: Makefile,v 1.22 2003/10/21 10:01:19 lukem Exp $ # @(#)Makefile 8.1 (Berkeley) 6/11/93 +.include + 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} < /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=${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} + ${_MKTARGET_CREATE} + rm -f ${.TARGET} + ${MKDICT} < ${WORDS} > ${.TARGET} + +dictindex: dictionary ${MKINDEX} + ${_MKTARGET_CREATE} + rm -f ${.TARGET} + ${MKINDEX} < dictionary > ${.TARGET} +.include .include