Sync usage with man page.
[netbsd-mini2440.git] / games / boggle / Makefile
bloba33b7010ab0185da3058003d4bf66432d2e1dedf
1 # $NetBSD: Makefile,v 1.21 2003/10/19 04:45:01 lukem Exp $
2 # @(#)Makefile 8.1 (Berkeley) 6/11/93
4 .include <bsd.own.mk>
6 SUBDIR= boggle mkdict mkindex
8 MKDICTDIR!= cd $(.CURDIR)/mkdict; ${PRINTOBJDIR}
9 MKDICT=${MKDICTDIR}/mkdict
10 MKINDEXDIR!= cd $(.CURDIR)/mkindex; ${PRINTOBJDIR}
11 MKINDEX=${MKINDEXDIR}/mkindex
12 WORDS=${NETBSDSRCDIR}/share/dict/web2
13 DICTFILES=dictionary dictindex
14 .if ${MKSHARE} != "no"
15 FILES=${DICTFILES}
16 FILESDIR=/usr/share/games/boggle
17 .endif
18 CLEANFILES+=${DICTFILES}
20 realall: ${FILES}
22 ${MKDICT}:
23 @cd ${.CURDIR}/mkdict && ${MAKE}
25 ${MKINDEX}:
26 @cd ${.CURDIR}/mkindex && ${MAKE}
28 dictionary: ${WORDS} ${MKDICT}
29 ${_MKTARGET_CREATE}
30 rm -f ${.TARGET}
31 ${MKDICT} < ${WORDS} > ${.TARGET}
33 dictindex: dictionary ${MKINDEX}
34 ${_MKTARGET_CREATE}
35 rm -f ${.TARGET}
36 ${MKINDEX} < dictionary > ${.TARGET}
38 .include <bsd.prog.mk>
39 .include <bsd.subdir.mk>