X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/8f6735a7b8851d9f9e1e24b84f4db412ff678e37..3a0be2d0e88bf73dec95086fa0048c88f0b142d9:/boggle/Makefile diff --git a/boggle/Makefile b/boggle/Makefile index 7e42b913..59d2f358 100644 --- a/boggle/Makefile +++ b/boggle/Makefile @@ -1,28 +1,39 @@ -# $NetBSD: Makefile,v 1.7 1997/03/24 22:15:38 christos 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 -WORDS=${DESTDIR}/usr/share/dict/words -FILES=dictionary 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 -CLEANFILES+=${FILES} +.endif +CLEANFILES+=${DICTFILES} + +realall: ${FILES} -all: ${FILES} +${MKDICT}: + @cd ${.CURDIR}/mkdict && ${MAKE} -${MKDICT} ${MKINDEX}: ${SUBDIR} - +${MKINDEX}: + @cd ${.CURDIR}/mkindex && ${MAKE} -dictionary: ${MKDICT} ${WORDS} +dictionary: ${WORDS} ${MKDICT} + ${_MKTARGET_CREATE} rm -f ${.TARGET} ${MKDICT} < ${WORDS} > ${.TARGET} -dictindex: ${MKINDEX} dictionary +dictindex: dictionary ${MKINDEX} + ${_MKTARGET_CREATE} rm -f ${.TARGET} ${MKINDEX} < dictionary > ${.TARGET} .include +.include