Home | History | Annotate | Line # | Download | only in boggle
Makefile revision 1.7
      1 #	$NetBSD: Makefile,v 1.7 1997/03/24 22:15:38 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" | ${MAKE} -r -s -f - xxx
      8 MKINDEX!=cd $(.CURDIR)/mkindex; \
      9 	printf "xxx:\n\techo \$${.OBJDIR}/mkindex\n" | ${MAKE} -r -s -f - xxx
     10 WORDS=${DESTDIR}/usr/share/dict/words
     11 FILES=dictionary dictindex
     12 FILESDIR=/usr/share/games/boggle
     13 CLEANFILES+=${FILES}
     14 
     15 all: ${FILES}
     16 
     17 ${MKDICT} ${MKINDEX}: ${SUBDIR}
     18 	
     19 
     20 dictionary: ${MKDICT} ${WORDS}
     21 	rm -f ${.TARGET}
     22 	${MKDICT} < ${WORDS} > ${.TARGET}
     23 
     24 dictindex: ${MKINDEX} dictionary
     25 	rm -f ${.TARGET}
     26 	${MKINDEX} < dictionary > ${.TARGET}
     27 
     28 .include <bsd.prog.mk>
     29