X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/11d38a5e4617fd29111bf1ff597367c9d234db14..026158ce21511a76693e38921c011f2f2fa66002:/boggle/Makefile diff --git a/boggle/Makefile b/boggle/Makefile index 8accb197..4543e37f 100644 --- a/boggle/Makefile +++ b/boggle/Makefile @@ -1,34 +1,37 @@ -# $NetBSD: Makefile,v 1.9 1997/04/01 15:25:52 christos Exp $ +# $NetBSD: Makefile,v 1.17 2000/12/30 17:51:26 sommerfeld 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 | grep mkdict -MKINDEX!=cd $(.CURDIR)/mkindex; \ - printf "xxx:\n\techo \$${.OBJDIR}/mkindex\n" | \ - ${MAKE} -r -s -f - xxx | grep mkindex -WORDS=${.CURDIR}/../../share/dict/web2a -FILES=dictionary 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 -CLEANFILES+=${FILES} +.endif +CLEANFILES+=${DICTFILES} -all: ${FILES} +realall: ${FILES} ${MKDICT}: @cd ${.CURDIR}/mkdict && ${MAKE} ${MKINDEX}: @cd ${.CURDIR}/mkindex && ${MAKE} - -dictionary: ${WORDS} ${MKDICT} +${.OBJDIR}/dictionary: ${WORDS} ${MKDICT} rm -f ${.TARGET} ${MKDICT} < ${WORDS} > ${.TARGET} -dictindex: dictionary ${MKINDEX} +${.OBJDIR}/dictindex: ${.OBJDIR}/dictionary ${MKINDEX} rm -f ${.TARGET} - ${MKINDEX} < dictionary > ${.TARGET} + ${MKINDEX} < ${.OBJDIR}/dictionary > ${.TARGET} .include +.include