2003-10-21 14:01:19 +04:00
|
|
|
# $NetBSD: Makefile,v 1.22 2003/10/21 10:01:19 lukem Exp $
|
1994-10-21 23:52:51 +03:00
|
|
|
# @(#)Makefile 8.1 (Berkeley) 6/11/93
|
|
|
|
|
1999-02-13 05:54:17 +03:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
1994-10-21 23:52:51 +03:00
|
|
|
SUBDIR= boggle mkdict mkindex
|
|
|
|
|
2000-12-30 20:51:26 +03:00
|
|
|
MKDICTDIR!= cd $(.CURDIR)/mkdict; ${PRINTOBJDIR}
|
|
|
|
MKDICT=${MKDICTDIR}/mkdict
|
|
|
|
MKINDEXDIR!= cd $(.CURDIR)/mkindex; ${PRINTOBJDIR}
|
|
|
|
MKINDEX=${MKINDEXDIR}/mkindex
|
2002-09-18 06:51:46 +04:00
|
|
|
WORDS=${NETBSDSRCDIR}/share/dict/web2
|
2002-03-05 22:17:44 +03:00
|
|
|
DICTFILES=dictionary dictindex
|
1999-02-13 05:54:17 +03:00
|
|
|
.if ${MKSHARE} != "no"
|
1998-09-29 11:33:20 +04:00
|
|
|
FILES=${DICTFILES}
|
1997-03-25 01:15:37 +03:00
|
|
|
FILESDIR=/usr/share/games/boggle
|
1998-09-29 11:33:20 +04:00
|
|
|
.endif
|
|
|
|
CLEANFILES+=${DICTFILES}
|
1994-11-30 14:38:56 +03:00
|
|
|
|
2000-01-24 00:55:44 +03:00
|
|
|
realall: ${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
|
|
|
|
2002-03-05 22:17:44 +03:00
|
|
|
dictionary: ${WORDS} ${MKDICT}
|
2003-10-21 14:01:19 +04:00
|
|
|
${_MKTARGET_CREATE}
|
1997-03-25 01:15:37 +03:00
|
|
|
rm -f ${.TARGET}
|
|
|
|
${MKDICT} < ${WORDS} > ${.TARGET}
|
|
|
|
|
2002-03-05 22:17:44 +03:00
|
|
|
dictindex: dictionary ${MKINDEX}
|
2003-10-21 14:01:19 +04:00
|
|
|
${_MKTARGET_CREATE}
|
1997-03-25 01:15:37 +03:00
|
|
|
rm -f ${.TARGET}
|
2002-03-05 22:17:44 +03:00
|
|
|
${MKINDEX} < dictionary > ${.TARGET}
|
1997-03-25 01:15:37 +03:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|
1997-10-11 13:34:07 +04:00
|
|
|
.include <bsd.subdir.mk>
|