Makefile revision 1.8
1#	$NetBSD: Makefile,v 1.8 1997/04/01 11:42:34 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" | ${MAKE} -r -s -f - xxx
8MKINDEX!=cd $(.CURDIR)/mkindex; \
9	printf "xxx:\n\techo \$${.OBJDIR}/mkindex\n" | ${MAKE} -r -s -f - xxx
10WORDS=${.CURDIR}/../../share/dict/web2a
11FILES=dictionary dictindex
12FILESDIR=/usr/share/games/boggle
13CLEANFILES+=${FILES}
14
15all: ${FILES}
16
17${MKDICT} ${MKINDEX}: ${SUBDIR}
18	
19
20dictionary: ${WORDS}
21	rm -f ${.TARGET}
22	${MKDICT} < ${WORDS} > ${.TARGET}
23
24dictindex: dictionary
25	rm -f ${.TARGET}
26	${MKINDEX} < dictionary > ${.TARGET}
27
28.include <bsd.prog.mk>
29