1997-04-01 19:25:52 +04:00
|
|
|
# $NetBSD: Makefile,v 1.9 1997/04/01 15:25:52 christos Exp $
|
1994-10-21 23:52:51 +03:00
|
|
|
# @(#)Makefile 8.1 (Berkeley) 6/11/93
|
|
|
|
|
|
|
|
SUBDIR= boggle mkdict mkindex
|
|
|
|
|
1994-11-30 14:38:56 +03:00
|
|
|
MKDICT!=cd $(.CURDIR)/mkdict; \
|
1997-04-01 19:25:52 +04:00
|
|
|
printf "xxx:\n\techo \$${.OBJDIR}/mkdict\n" | \
|
|
|
|
${MAKE} -r -s -f - xxx | grep mkdict
|
1994-11-30 14:38:56 +03:00
|
|
|
MKINDEX!=cd $(.CURDIR)/mkindex; \
|
1997-04-01 19:25:52 +04:00
|
|
|
printf "xxx:\n\techo \$${.OBJDIR}/mkindex\n" | \
|
|
|
|
${MAKE} -r -s -f - xxx | grep mkindex
|
1997-04-01 15:42:34 +04:00
|
|
|
WORDS=${.CURDIR}/../../share/dict/web2a
|
1997-03-25 01:15:37 +03:00
|
|
|
FILES=dictionary dictindex
|
|
|
|
FILESDIR=/usr/share/games/boggle
|
|
|
|
CLEANFILES+=${FILES}
|
1994-11-30 14:38:56 +03:00
|
|
|
|
1997-03-25 01:15:37 +03:00
|
|
|
all: ${FILES}
|
1995-03-01 12:05:20 +03:00
|
|
|
|
1997-04-01 19:25:52 +04:00
|
|
|
${MKDICT}:
|
|
|
|
@cd ${.CURDIR}/mkdict && ${MAKE}
|
|
|
|
|
|
|
|
${MKINDEX}:
|
|
|
|
@cd ${.CURDIR}/mkindex && ${MAKE}
|
1997-03-25 01:15:37 +03:00
|
|
|
|
|
|
|
|
1997-04-01 19:25:52 +04:00
|
|
|
dictionary: ${WORDS} ${MKDICT}
|
1997-03-25 01:15:37 +03:00
|
|
|
rm -f ${.TARGET}
|
|
|
|
${MKDICT} < ${WORDS} > ${.TARGET}
|
|
|
|
|
1997-04-01 19:25:52 +04:00
|
|
|
dictindex: dictionary ${MKINDEX}
|
1997-03-25 01:15:37 +03:00
|
|
|
rm -f ${.TARGET}
|
|
|
|
${MKINDEX} < dictionary > ${.TARGET}
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|