X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/f0356cf871408e3278470f30bdf03fa796c66c25..b85ca8c753072d6e5db9887ad8e71d4d123c629f:/boggle/Makefile diff --git a/boggle/Makefile b/boggle/Makefile index 60834e06..59d2f358 100644 --- a/boggle/Makefile +++ b/boggle/Makefile @@ -1,34 +1,37 @@ -# $NetBSD: Makefile,v 1.13 1998/09/29 07:33:20 lukem 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: .MAKE\n\t@echo \$${.OBJDIR}/mkdict\n" | ${MAKE} -s -f- -MKINDEX!=cd $(.CURDIR)/mkindex; \ - printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/mkindex\n" | ${MAKE} -s -f- -WORDS=${.CURDIR}/../../share/dict/web2 +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 !defined(NOSHARE) +.if ${MKSHARE} != "no" FILES=${DICTFILES} FILESDIR=/usr/share/games/boggle .endif CLEANFILES+=${DICTFILES} -all: ${FILES} +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}