]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - boggle/Makefile
make objdir-aware
[bsdgames-darwin.git] / boggle / Makefile
1 # $NetBSD: Makefile,v 1.14 1998/11/09 15:30:10 hubertf Exp $
2 # @(#)Makefile 8.1 (Berkeley) 6/11/93
3
4 SUBDIR= boggle mkdict mkindex
5
6 MKDICT!=cd $(.CURDIR)/mkdict; \
7 printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/mkdict\n" | ${MAKE} -s -f-
8 MKINDEX!=cd $(.CURDIR)/mkindex; \
9 printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/mkindex\n" | ${MAKE} -s -f-
10 WORDS=${.CURDIR}/../../share/dict/web2
11 DICTFILES=${.OBJDIR}/dictionary ${.OBJDIR}/dictindex
12 .if !defined(NOSHARE)
13 FILES=${DICTFILES}
14 FILESDIR=/usr/share/games/boggle
15 .endif
16 CLEANFILES+=${DICTFILES}
17
18 all: ${FILES}
19
20 ${MKDICT}:
21 @cd ${.CURDIR}/mkdict && ${MAKE}
22
23 ${MKINDEX}:
24 @cd ${.CURDIR}/mkindex && ${MAKE}
25
26
27 ${.OBJDIR}/dictionary: ${WORDS} ${MKDICT}
28 rm -f ${.TARGET}
29 ${MKDICT} < ${WORDS} > ${.TARGET}
30
31 ${.OBJDIR}/dictindex: ${.OBJDIR}/dictionary ${MKINDEX}
32 rm -f ${.TARGET}
33 ${MKINDEX} < ${.OBJDIR}/dictionary > ${.TARGET}
34
35 .include <bsd.prog.mk>
36 .include <bsd.subdir.mk>