-# $NetBSD: Makefile,v 1.18 2002/03/05 19:17:44 thorpej Exp $
+# $NetBSD: Makefile,v 1.22 2003/10/21 10:01:19 lukem Exp $
# @(#)Makefile 8.1 (Berkeley) 6/11/93
.include <bsd.own.mk>
MKDICT=${MKDICTDIR}/mkdict
MKINDEXDIR!= cd $(.CURDIR)/mkindex; ${PRINTOBJDIR}
MKINDEX=${MKINDEXDIR}/mkindex
-WORDS=${.CURDIR}/../../share/dict/web2
+WORDS=${NETBSDSRCDIR}/share/dict/web2
DICTFILES=dictionary dictindex
.if ${MKSHARE} != "no"
FILES=${DICTFILES}
@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}