Makefile revision 1.16
1# $NetBSD: Makefile,v 1.16 2000/01/23 22:08:53 mycroft Exp $ 2# @(#)Makefile 8.1 (Berkeley) 6/11/93 3 4.include <bsd.own.mk> 5 6SUBDIR= boggle mkdict mkindex 7 8MKDICT!=cd $(.CURDIR)/mkdict; \ 9 printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/mkdict\n" | ${MAKE} -s -f- 10MKINDEX!=cd $(.CURDIR)/mkindex; \ 11 printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/mkindex\n" | ${MAKE} -s -f- 12WORDS=${.CURDIR}/../../share/dict/web2 13DICTFILES=${.OBJDIR}/dictionary ${.OBJDIR}/dictindex 14.if ${MKSHARE} != "no" 15FILES=${DICTFILES} 16FILESDIR=/usr/share/games/boggle 17.endif 18CLEANFILES+=${DICTFILES} 19 20realall: ${FILES} 21 22${MKDICT}: 23 @cd ${.CURDIR}/mkdict && ${MAKE} 24 25${MKINDEX}: 26 @cd ${.CURDIR}/mkindex && ${MAKE} 27 28 29${.OBJDIR}/dictionary: ${WORDS} ${MKDICT} 30 rm -f ${.TARGET} 31 ${MKDICT} < ${WORDS} > ${.TARGET} 32 33${.OBJDIR}/dictindex: ${.OBJDIR}/dictionary ${MKINDEX} 34 rm -f ${.TARGET} 35 ${MKINDEX} < ${.OBJDIR}/dictionary > ${.TARGET} 36 37.include <bsd.prog.mk> 38.include <bsd.subdir.mk> 39