Makefile revision 1.9
1#	$NetBSD: Makefile,v 1.9 1997/04/01 15:25:52 christos Exp $
2#	@(#)Makefile	8.1 (Berkeley) 6/11/93
3
4SUBDIR=	boggle mkdict mkindex
5
6MKDICT!=cd $(.CURDIR)/mkdict; \
7	printf "xxx:\n\techo \$${.OBJDIR}/mkdict\n" | \
8	${MAKE} -r -s -f - xxx | grep mkdict
9MKINDEX!=cd $(.CURDIR)/mkindex; \
10	printf "xxx:\n\techo \$${.OBJDIR}/mkindex\n" | \
11	${MAKE} -r -s -f - xxx | grep mkindex
12WORDS=${.CURDIR}/../../share/dict/web2a
13FILES=dictionary dictindex
14FILESDIR=/usr/share/games/boggle
15CLEANFILES+=${FILES}
16
17all: ${FILES}
18
19${MKDICT}:
20	@cd ${.CURDIR}/mkdict && ${MAKE}
21
22${MKINDEX}:
23	@cd ${.CURDIR}/mkindex && ${MAKE}
24	
25
26dictionary: ${WORDS} ${MKDICT}
27	rm -f ${.TARGET}
28	${MKDICT} < ${WORDS} > ${.TARGET}
29
30dictindex: dictionary ${MKINDEX}
31	rm -f ${.TARGET}
32	${MKINDEX} < dictionary > ${.TARGET}
33
34.include <bsd.prog.mk>
35