]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - boggle/Makefile
Fix warp compilation
[bsdgames-darwin.git] / boggle / Makefile
index 6b5b161c8a4b8601c6f52d7fc96f50290f4de930..fba54e28d315bf79499979849f2d476924adb5ce 100644 (file)
@@ -1,34 +1,29 @@
-#      $NetBSD: Makefile,v 1.10 1997/04/30 20:07:40 christos Exp $
-#      @(#)Makefile    8.1 (Berkeley) 6/11/93
+all: dictionary dictindex boggle
 
-SUBDIR=        boggle mkdict mkindex
+mkdict:
+       $(MAKE) -C mkdict
 
-MKDICT!=cd $(.CURDIR)/mkdict; \
-       printf "xxx:\n\techo \$${.OBJDIR}/mkdict\n" | \
-       ${MAKE} -r -s -f - xxx | grep mkdict
-MKINDEX!=cd $(.CURDIR)/mkindex; \
-       printf "xxx:\n\techo \$${.OBJDIR}/mkindex\n" | \
-       ${MAKE} -r -s -f - xxx | grep mkindex
-WORDS=${.CURDIR}/../../share/dict/web2
-FILES=dictionary dictindex
-FILESDIR=/usr/share/games/boggle
-CLEANFILES+=${FILES}
+mkindex:
+       $(MAKE) -C mkindex
 
-all: ${FILES}
+boggle:
+       $(MAKE) -C boggle 
 
-${MKDICT}:
-       @cd ${.CURDIR}/mkdict && ${MAKE}
+clean:
+       rm -f dictionary dictindex
+       $(MAKE) -C mkdict clean
+       $(MAKE) -C mkindex clean
+       $(MAKE) -C boggle clean
 
-${MKINDEX}:
-       @cd ${.CURDIR}/mkindex && ${MAKE}
-       
+dictionary: mkdict
+       ./mkdict/mkdict < mkdict/web2 > dictionary
 
-dictionary: ${WORDS} ${MKDICT}
-       rm -f ${.TARGET}
-       ${MKDICT} < ${WORDS} > ${.TARGET}
+dictindex: mkindex dictionary
+       ./mkindex/mkindex < dictionary > dictindex
 
-dictindex: dictionary ${MKINDEX}
-       rm -f ${.TARGET}
-       ${MKINDEX} < dictionary > ${.TARGET}
+install: dictindex dictionary boggle
+       $(GINSTALL) -Dm644 dictionary $(DESTDIR)/$(PREFIX)/share/games/boggle/dictionary
+       $(GINSTALL) -Dm644 dictindex $(DESTDIR)/$(PREFIX)/share/games/boggle/dictindex
+       $(MAKE) -C boggle install
 
-.include <bsd.prog.mk>
+.PHONY: all clean install mkdict mkindex boggle