1 # $NetBSD: Makefile,v 1.15 1999/02/13 02:54:20 lukem Exp $
2 # @(#)Makefile 8.1 (Berkeley) 6/11/93
6 SUBDIR= boggle mkdict mkindex
8 MKDICT!=cd $(.CURDIR)/mkdict; \
9 printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/mkdict\n" | ${MAKE} -s -f-
10 MKINDEX!=cd $(.CURDIR)/mkindex; \
11 printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/mkindex\n" | ${MAKE} -s -f-
12 WORDS=${.CURDIR}/../../share/dict/web2
13 DICTFILES=${.OBJDIR}/dictionary ${.OBJDIR}/dictindex
14 .if ${MKSHARE} != "no"
16 FILESDIR=/usr/share/games/boggle
18 CLEANFILES+=${DICTFILES}
23 @cd ${.CURDIR}/mkdict && ${MAKE}
26 @cd ${.CURDIR}/mkindex && ${MAKE}
29 ${.OBJDIR}/dictionary: ${WORDS} ${MKDICT}
31 ${MKDICT} < ${WORDS} > ${.TARGET}
33 ${.OBJDIR}/dictindex: ${.OBJDIR}/dictionary ${MKINDEX}
35 ${MKINDEX} < ${.OBJDIR}/dictionary > ${.TARGET}
37 .include <bsd.prog.mk>
38 .include <bsd.subdir.mk>