BSD 4_4 release
[unix-history] / usr / src / games / boggle / Makefile
index 2c1ce8d..ed47dcb 100644 (file)
@@ -1,23 +1,15 @@
-#      @(#)Makefile    4.1     12/24/82
-#
-DESTDIR=
-CC = /bin/cc
-CFLAGS = -O
-
-all:   boggle bogdict
-
-bogdict: comp sfile
-       sed -f sfile /usr/local/lib/w2a | uniq | comp >bogdict
-
-install:
-       install boggle ${DESTDIR}/usr/games/boggle
-       install bogdict ${DESTDIR}/usr/games/bogdict
-
-boggle: boggle.c
-       cc -o boggle ${CFLAGS} boggle.c
-
-comp: comp.c
-       cc -o comp ${CFLAGS} comp.c
-
-clean:
-       rm -f bogdict boggle comp
+#      @(#)Makefile    8.1 (Berkeley) 6/11/93
+
+SUBDIR=        boggle mkdict mkindex
+
+beforeinstall:
+       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>