2000-01-23 21:55:44 +00:00
|
|
|
# $NetBSD: Makefile,v 1.16 2000/01/23 22:08:53 mycroft Exp $
|
1994-10-21 20:52:51 +00:00
|
|
|
# @(#)Makefile 8.1 (Berkeley) 6/11/93
|
|
|
|
|
1999-02-13 02:54:17 +00:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
1994-10-21 20:52:51 +00:00
|
|
|
SUBDIR= boggle mkdict mkindex
|
|
|
|
|
1994-11-30 11:38:56 +00:00
|
|
|
MKDICT!=cd $(.CURDIR)/mkdict; \
|
1997-05-07 07:15:34 +00:00
|
|
|
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/mkdict\n" | ${MAKE} -s -f-
|
1994-11-30 11:38:56 +00:00
|
|
|
MKINDEX!=cd $(.CURDIR)/mkindex; \
|
1997-05-07 07:15:34 +00:00
|
|
|
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/mkindex\n" | ${MAKE} -s -f-
|
1997-04-30 20:07:40 +00:00
|
|
|
WORDS=${.CURDIR}/../../share/dict/web2
|
1998-11-09 15:30:10 +00:00
|
|
|
DICTFILES=${.OBJDIR}/dictionary ${.OBJDIR}/dictindex
|
1999-02-13 02:54:17 +00:00
|
|
|
.if ${MKSHARE} != "no"
|
1998-09-29 07:33:20 +00:00
|
|
|
FILES=${DICTFILES}
|
1997-03-24 22:15:37 +00:00
|
|
|
FILESDIR=/usr/share/games/boggle
|
1998-09-29 07:33:20 +00:00
|
|
|
.endif
|
|
|
|
CLEANFILES+=${DICTFILES}
|
1994-11-30 11:38:56 +00:00
|
|
|
|
2000-01-23 21:55:44 +00:00
|
|
|
realall: ${FILES}
|
1995-03-01 09:05:20 +00:00
|
|
|
|
1997-04-01 15:25:52 +00:00
|
|
|
${MKDICT}:
|
|
|
|
@cd ${.CURDIR}/mkdict && ${MAKE}
|
|
|
|
|
|
|
|
${MKINDEX}:
|
|
|
|
@cd ${.CURDIR}/mkindex && ${MAKE}
|
1997-03-24 22:15:37 +00:00
|
|
|
|
|
|
|
|
1998-11-09 15:30:10 +00:00
|
|
|
${.OBJDIR}/dictionary: ${WORDS} ${MKDICT}
|
1997-03-24 22:15:37 +00:00
|
|
|
rm -f ${.TARGET}
|
|
|
|
${MKDICT} < ${WORDS} > ${.TARGET}
|
|
|
|
|
1998-11-09 15:30:10 +00:00
|
|
|
${.OBJDIR}/dictindex: ${.OBJDIR}/dictionary ${MKINDEX}
|
1997-03-24 22:15:37 +00:00
|
|
|
rm -f ${.TARGET}
|
1998-11-09 15:30:10 +00:00
|
|
|
${MKINDEX} < ${.OBJDIR}/dictionary > ${.TARGET}
|
1997-03-24 22:15:37 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|
1997-10-11 09:34:07 +00:00
|
|
|
.include <bsd.subdir.mk>
|