BSD 4_3_Reno release
[unix-history] / usr / src / games / boggle / Makefile
index 2c1ce8d..442bf19 100644 (file)
@@ -1,23 +1,21 @@
-#      @(#)Makefile    4.1     12/24/82
-#
-DESTDIR=
-CC = /bin/cc
-CFLAGS = -O
+#      @(#)Makefile    5.14 (Berkeley) 7/1/90
 
 
-all:   boggle bogdict
+PROG=  boggle
+MAN6=  boggle.0
+DPADD= ${LIBCOMPAT}
+LDADD= -lcompat
+HIDEGAME=hidegame
+CLEANFILES=comp bogdict
 
 
-bogdict: comp sfile
-       sed -f sfile /usr/local/lib/w2a | uniq | comp >bogdict
+all: bogdict
 
 
-install:
-       install boggle ${DESTDIR}/usr/games/boggle
-       install bogdict ${DESTDIR}/usr/games/bogdict
+bogdict: /usr/share/dict/words comp sfile
+       sed -f ${.CURDIR}/sfile /usr/share/dict/words | uniq | ./comp >bogdict
 
 
-boggle: boggle.c
-       cc -o boggle ${CFLAGS} boggle.c
+beforeinstall:
+       install -c -o ${BINOWN} -g ${BINGRP} -m 444 bogdict \
+           ${DESTDIR}/usr/share/games
+comp:
+       ${CC} -O ${.CURDIR}/comp.c -o ${.TARGET}
 
 
-comp: comp.c
-       cc -o comp ${CFLAGS} comp.c
-
-clean:
-       rm -f bogdict boggle comp
+.include <bsd.prog.mk>