Home | History | Annotate | Line # | Download | only in boggle
Makefile revision 1.9
      1 #	$NetBSD: Makefile,v 1.9 1997/04/01 15:25:52 christos Exp $
      2 #	@(#)Makefile	8.1 (Berkeley) 6/11/93
      3 
      4 SUBDIR=	boggle mkdict mkindex
      5 
      6 MKDICT!=cd $(.CURDIR)/mkdict; \
      7 	printf "xxx:\n\techo \$${.OBJDIR}/mkdict\n" | \
      8 	${MAKE} -r -s -f - xxx | grep mkdict
      9 MKINDEX!=cd $(.CURDIR)/mkindex; \
     10 	printf "xxx:\n\techo \$${.OBJDIR}/mkindex\n" | \
     11 	${MAKE} -r -s -f - xxx | grep mkindex
     12 WORDS=${.CURDIR}/../../share/dict/web2a
     13 FILES=dictionary dictindex
     14 FILESDIR=/usr/share/games/boggle
     15 CLEANFILES+=${FILES}
     16 
     17 all: ${FILES}
     18 
     19 ${MKDICT}:
     20 	@cd ${.CURDIR}/mkdict && ${MAKE}
     21 
     22 ${MKINDEX}:
     23 	@cd ${.CURDIR}/mkindex && ${MAKE}
     24 	
     25 
     26 dictionary: ${WORDS} ${MKDICT}
     27 	rm -f ${.TARGET}
     28 	${MKDICT} < ${WORDS} > ${.TARGET}
     29 
     30 dictindex: dictionary ${MKINDEX}
     31 	rm -f ${.TARGET}
     32 	${MKINDEX} < dictionary > ${.TARGET}
     33 
     34 .include <bsd.prog.mk>
     35