BSD 4_4 release
[unix-history] / usr / src / games / boggle / Makefile
index 442bf19..ed47dcb 100644 (file)
@@ -1,21 +1,15 @@
-#      @(#)Makefile    5.14 (Berkeley) 7/1/90
+#      @(#)Makefile    8.1 (Berkeley) 6/11/93
 
 
-PROG=  boggle
-MAN6=  boggle.0
-DPADD= ${LIBCOMPAT}
-LDADD= -lcompat
-HIDEGAME=hidegame
-CLEANFILES=comp bogdict
-
-all: bogdict
-
-bogdict: /usr/share/dict/words comp sfile
-       sed -f ${.CURDIR}/sfile /usr/share/dict/words | uniq | ./comp >bogdict
+SUBDIR=        boggle mkdict mkindex
 
 beforeinstall:
 
 beforeinstall:
-       install -c -o ${BINOWN} -g ${BINGRP} -m 444 bogdict \
-           ${DESTDIR}/usr/share/games
-comp:
-       ${CC} -O ${.CURDIR}/comp.c -o ${.TARGET}
-
-.include <bsd.prog.mk>
+       mkdict/obj/mkdict < /usr/share/dict/words > \
+           ${DESTDIR}/usr/share/games/boggle/dictionary
+       mkindex/obj/mkindex < ${DESTDIR}/usr/share/games/boggle/dictionary > \
+           ${DESTDIR}/usr/share/games/boggle/dictindex
+       chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/share/games/boggle/dictionary
+       chmod 444 ${DESTDIR}/usr/share/games/boggle/dictionary
+       chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/share/games/boggle/dictindex
+       chmod 444 ${DESTDIR}/usr/share/games/boggle/dictindex
+       
+.include <bsd.subdir.mk>