NetBSD/games/boggle/Makefile

37 lines
913 B
Makefile
Raw Normal View History

1998-11-09 18:30:10 +03:00
# $NetBSD: Makefile,v 1.14 1998/11/09 15:30:10 hubertf Exp $
1994-10-21 23:52:51 +03:00
# @(#)Makefile 8.1 (Berkeley) 6/11/93
SUBDIR= boggle mkdict mkindex
1994-11-30 14:38:56 +03:00
MKDICT!=cd $(.CURDIR)/mkdict; \
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/mkdict\n" | ${MAKE} -s -f-
1994-11-30 14:38:56 +03:00
MKINDEX!=cd $(.CURDIR)/mkindex; \
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/mkindex\n" | ${MAKE} -s -f-
WORDS=${.CURDIR}/../../share/dict/web2
1998-11-09 18:30:10 +03:00
DICTFILES=${.OBJDIR}/dictionary ${.OBJDIR}/dictindex
.if !defined(NOSHARE)
FILES=${DICTFILES}
1997-03-25 01:15:37 +03:00
FILESDIR=/usr/share/games/boggle
.endif
CLEANFILES+=${DICTFILES}
1994-11-30 14:38:56 +03:00
1997-03-25 01:15:37 +03:00
all: ${FILES}
1995-03-01 12:05:20 +03:00
${MKDICT}:
@cd ${.CURDIR}/mkdict && ${MAKE}
${MKINDEX}:
@cd ${.CURDIR}/mkindex && ${MAKE}
1997-03-25 01:15:37 +03:00
1998-11-09 18:30:10 +03:00
${.OBJDIR}/dictionary: ${WORDS} ${MKDICT}
1997-03-25 01:15:37 +03:00
rm -f ${.TARGET}
${MKDICT} < ${WORDS} > ${.TARGET}
1998-11-09 18:30:10 +03:00
${.OBJDIR}/dictindex: ${.OBJDIR}/dictionary ${MKINDEX}
1997-03-25 01:15:37 +03:00
rm -f ${.TARGET}
1998-11-09 18:30:10 +03:00
${MKINDEX} < ${.OBJDIR}/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>