130ab7336b
* Don't bother prefixing commands with a line of ${_MKCMD}\ and instead rely upon "make -s". This is less intrusive on all the Makefiles than the former. Idea from David Laight. * Rename the variables use to print messages. The scheme now is: _MKMSG_FOO Run _MKMSG 'foo' _MKTARGET_FOO Run _MKMSG_FOO ${.TARGET} From discussion with Alistair Crooks.
40 lines
864 B
Makefile
40 lines
864 B
Makefile
# $NetBSD: Makefile,v 1.22 2003/10/21 10:01:19 lukem Exp $
|
|
# @(#)Makefile 8.1 (Berkeley) 6/11/93
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
SUBDIR= boggle mkdict mkindex
|
|
|
|
MKDICTDIR!= cd $(.CURDIR)/mkdict; ${PRINTOBJDIR}
|
|
MKDICT=${MKDICTDIR}/mkdict
|
|
MKINDEXDIR!= cd $(.CURDIR)/mkindex; ${PRINTOBJDIR}
|
|
MKINDEX=${MKINDEXDIR}/mkindex
|
|
WORDS=${NETBSDSRCDIR}/share/dict/web2
|
|
DICTFILES=dictionary dictindex
|
|
.if ${MKSHARE} != "no"
|
|
FILES=${DICTFILES}
|
|
FILESDIR=/usr/share/games/boggle
|
|
.endif
|
|
CLEANFILES+=${DICTFILES}
|
|
|
|
realall: ${FILES}
|
|
|
|
${MKDICT}:
|
|
@cd ${.CURDIR}/mkdict && ${MAKE}
|
|
|
|
${MKINDEX}:
|
|
@cd ${.CURDIR}/mkindex && ${MAKE}
|
|
|
|
dictionary: ${WORDS} ${MKDICT}
|
|
${_MKTARGET_CREATE}
|
|
rm -f ${.TARGET}
|
|
${MKDICT} < ${WORDS} > ${.TARGET}
|
|
|
|
dictindex: dictionary ${MKINDEX}
|
|
${_MKTARGET_CREATE}
|
|
rm -f ${.TARGET}
|
|
${MKINDEX} < dictionary > ${.TARGET}
|
|
|
|
.include <bsd.prog.mk>
|
|
.include <bsd.subdir.mk>
|