]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - boggle/Makefile
Support MAKEVERBOSE. (Some host tools still generate verbose runtime messages)
[bsdgames-darwin.git] / boggle / Makefile
1 # $NetBSD: Makefile,v 1.20 2003/10/19 01:01:44 lukem Exp $
2 # @(#)Makefile 8.1 (Berkeley) 6/11/93
3
4 .include <bsd.own.mk>
5
6 SUBDIR= boggle mkdict mkindex
7
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}
19
20 realall: ${FILES}
21
22 ${MKDICT}:
23 @cd ${.CURDIR}/mkdict && ${MAKE}
24
25 ${MKINDEX}:
26 @cd ${.CURDIR}/mkindex && ${MAKE}
27
28 dictionary: ${WORDS} ${MKDICT}
29 ${_MKMSG} " create ${.TARGET}"
30 ${_MKCMD}\
31 rm -f ${.TARGET}
32 ${_MKCMD}\
33 ${MKDICT} < ${WORDS} > ${.TARGET}
34
35 dictindex: dictionary ${MKINDEX}
36 ${_MKMSG} " create ${.TARGET}"
37 ${_MKCMD}\
38 rm -f ${.TARGET}
39 ${_MKCMD}\
40 ${MKINDEX} < dictionary > ${.TARGET}
41
42 .include <bsd.prog.mk>
43 .include <bsd.subdir.mk>