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