summaryrefslogtreecommitdiffstats
path: root/boggle
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>1997-04-01 15:25:52 +0000
committerchristos <christos@NetBSD.org>1997-04-01 15:25:52 +0000
commit11d38a5e4617fd29111bf1ff597367c9d234db14 (patch)
treed505f7bd5b2bdcefacb430db275e5ca6c6c7b574 /boggle
parent645b3f317fd0efc6235500a33a04486ae2849378 (diff)
downloadbsdgames-darwin-11d38a5e4617fd29111bf1ff597367c9d234db14.tar.gz
bsdgames-darwin-11d38a5e4617fd29111bf1ff597367c9d234db14.tar.zst
bsdgames-darwin-11d38a5e4617fd29111bf1ff597367c9d234db14.zip
Make sure that the dictionary and indexing programs are made.
Diffstat (limited to 'boggle')
-rw-r--r--boggle/Makefile18
1 files changed, 12 insertions, 6 deletions
diff --git a/boggle/Makefile b/boggle/Makefile
index 8d7c859c..8accb197 100644
--- a/boggle/Makefile
+++ b/boggle/Makefile
@@ -1,12 +1,14 @@
-# $NetBSD: Makefile,v 1.8 1997/04/01 11:42:34 christos Exp $
+# $NetBSD: Makefile,v 1.9 1997/04/01 15:25:52 christos Exp $
# @(#)Makefile 8.1 (Berkeley) 6/11/93
SUBDIR= boggle mkdict mkindex
MKDICT!=cd $(.CURDIR)/mkdict; \
- printf "xxx:\n\techo \$${.OBJDIR}/mkdict\n" | ${MAKE} -r -s -f - xxx
+ printf "xxx:\n\techo \$${.OBJDIR}/mkdict\n" | \
+ ${MAKE} -r -s -f - xxx | grep mkdict
MKINDEX!=cd $(.CURDIR)/mkindex; \
- printf "xxx:\n\techo \$${.OBJDIR}/mkindex\n" | ${MAKE} -r -s -f - xxx
+ printf "xxx:\n\techo \$${.OBJDIR}/mkindex\n" | \
+ ${MAKE} -r -s -f - xxx | grep mkindex
WORDS=${.CURDIR}/../../share/dict/web2a
FILES=dictionary dictindex
FILESDIR=/usr/share/games/boggle
@@ -14,14 +16,18 @@ CLEANFILES+=${FILES}
all: ${FILES}
-${MKDICT} ${MKINDEX}: ${SUBDIR}
+${MKDICT}:
+ @cd ${.CURDIR}/mkdict && ${MAKE}
+
+${MKINDEX}:
+ @cd ${.CURDIR}/mkindex && ${MAKE}
-dictionary: ${WORDS}
+dictionary: ${WORDS} ${MKDICT}
rm -f ${.TARGET}
${MKDICT} < ${WORDS} > ${.TARGET}
-dictindex: dictionary
+dictindex: dictionary ${MKINDEX}
rm -f ${.TARGET}
${MKINDEX} < dictionary > ${.TARGET}