-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}