1# $NetBSD: Makefile,v 1.18 2002/03/05 19:17:44 thorpej Exp $ 2# @(#)Makefile 8.1 (Berkeley) 6/11/93 3 4.include <bsd.own.mk> 5 6SUBDIR= boggle mkdict mkindex 7 8MKDICTDIR!= cd $(.CURDIR)/mkdict; ${PRINTOBJDIR} 9MKDICT=${MKDICTDIR}/mkdict 10MKINDEXDIR!= cd $(.CURDIR)/mkindex; ${PRINTOBJDIR} 11MKINDEX=${MKINDEXDIR}/mkindex 12WORDS=${.CURDIR}/../../share/dict/web2 13DICTFILES=dictionary dictindex 14.if ${MKSHARE} != "no" 15FILES=${DICTFILES} 16FILESDIR=/usr/share/games/boggle 17.endif 18CLEANFILES+=${DICTFILES} 19 20realall: ${FILES} 21 22${MKDICT}: 23 @cd ${.CURDIR}/mkdict && ${MAKE} 24 25${MKINDEX}: 26 @cd ${.CURDIR}/mkindex && ${MAKE} 27 28dictionary: ${WORDS} ${MKDICT} 29 rm -f ${.TARGET} 30 ${MKDICT} < ${WORDS} > ${.TARGET} 31 32dictindex: dictionary ${MKINDEX} 33 rm -f ${.TARGET} 34 ${MKINDEX} < dictionary > ${.TARGET} 35 36.include <bsd.prog.mk> 37.include <bsd.subdir.mk> 38