summaryrefslogtreecommitdiffstats
path: root/boggle
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>1995-04-20 02:04:51 +0000
committermycroft <mycroft@NetBSD.org>1995-04-20 02:04:51 +0000
commit21220f7e53a5408b92384c2a854243ebe7a918e6 (patch)
treef63c4ae2c96e41ad3a36f98a16a1b3f31bbccb10 /boggle
parentf7ec96d53d1d6067e74f38ff6eeff54ea5a75004 (diff)
downloadbsdgames-darwin-21220f7e53a5408b92384c2a854243ebe7a918e6.tar.gz
bsdgames-darwin-21220f7e53a5408b92384c2a854243ebe7a918e6.tar.zst
bsdgames-darwin-21220f7e53a5408b92384c2a854243ebe7a918e6.zip
Remove read-only files before trying to rewrite them. From Greg Hudson.
Diffstat (limited to 'boggle')
-rw-r--r--boggle/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/boggle/Makefile b/boggle/Makefile
index f6970804..700a77bf 100644
--- a/boggle/Makefile
+++ b/boggle/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 1995/03/21 12:14:18 cgd Exp $
+# $NetBSD: Makefile,v 1.5 1995/04/20 02:06:32 mycroft Exp $
# @(#)Makefile 8.1 (Berkeley) 6/11/93
SUBDIR= boggle mkdict mkindex
@@ -9,8 +9,10 @@ MKINDEX!=cd $(.CURDIR)/mkindex; \
printf "xxx:\n\techo \$${.OBJDIR}/mkindex\n" | ${MAKE} -r -s -f - xxx
beforeinstall:
+ rm -f ${DESTDIR}/usr/share/games/boggle/dictionary
${MKDICT} < /usr/share/dict/words > \
${DESTDIR}/usr/share/games/boggle/dictionary
+ rm -f ${DESTDIR}/usr/share/games/boggle/dictindex
${MKINDEX} < ${DESTDIR}/usr/share/games/boggle/dictionary > \
${DESTDIR}/usr/share/games/boggle/dictindex
chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/share/games/boggle/dictionary