diff options
author | christos <christos@NetBSD.org> | 1997-03-24 22:15:37 +0000 |
---|---|---|
committer | christos <christos@NetBSD.org> | 1997-03-24 22:15:37 +0000 |
commit | 8f6735a7b8851d9f9e1e24b84f4db412ff678e37 (patch) | |
tree | a7f36a113867b96038905924e459d9438fb281ca /boggle | |
parent | ede881fe14b692e673852957afbc06dfbcff3d86 (diff) | |
download | bsdgames-darwin-8f6735a7b8851d9f9e1e24b84f4db412ff678e37.tar.gz bsdgames-darwin-8f6735a7b8851d9f9e1e24b84f4db412ff678e37.tar.zst bsdgames-darwin-8f6735a7b8851d9f9e1e24b84f4db412ff678e37.zip |
- Makefile cleanups
Diffstat (limited to 'boggle')
-rw-r--r-- | boggle/Makefile | 31 | ||||
-rw-r--r-- | boggle/boggle/Makefile | 8 |
2 files changed, 21 insertions, 18 deletions
diff --git a/boggle/Makefile b/boggle/Makefile index 12718421..7e42b913 100644 --- a/boggle/Makefile +++ b/boggle/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 1996/09/26 00:04:42 mrg Exp $ +# $NetBSD: Makefile,v 1.7 1997/03/24 22:15:38 christos Exp $ # @(#)Makefile 8.1 (Berkeley) 6/11/93 SUBDIR= boggle mkdict mkindex @@ -7,17 +7,22 @@ MKDICT!=cd $(.CURDIR)/mkdict; \ printf "xxx:\n\techo \$${.OBJDIR}/mkdict\n" | ${MAKE} -r -s -f - xxx MKINDEX!=cd $(.CURDIR)/mkindex; \ printf "xxx:\n\techo \$${.OBJDIR}/mkindex\n" | ${MAKE} -r -s -f - xxx +WORDS=${DESTDIR}/usr/share/dict/words +FILES=dictionary dictindex +FILESDIR=/usr/share/games/boggle +CLEANFILES+=${FILES} -beforeinstall: - rm -f ${DESTDIR}/usr/share/games/boggle/dictionary - ${MKDICT} < ${DESTDIR}/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 - 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 +all: ${FILES} -.include <bsd.subdir.mk> +${MKDICT} ${MKINDEX}: ${SUBDIR} + + +dictionary: ${MKDICT} ${WORDS} + rm -f ${.TARGET} + ${MKDICT} < ${WORDS} > ${.TARGET} + +dictindex: ${MKINDEX} dictionary + rm -f ${.TARGET} + ${MKINDEX} < dictionary > ${.TARGET} + +.include <bsd.prog.mk> diff --git a/boggle/boggle/Makefile b/boggle/boggle/Makefile index 0ef7b1df..39995307 100644 --- a/boggle/boggle/Makefile +++ b/boggle/boggle/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 1996/10/18 02:44:27 thorpej Exp $ +# $NetBSD: Makefile,v 1.5 1997/03/24 22:15:39 christos Exp $ # @(#)Makefile 8.1 (Berkeley) 6/11/93 PROG= boggle @@ -7,10 +7,8 @@ DPADD= ${LIBCURSES} ${LIBTERM} LDADD= -lcurses -ltermlib HIDEGAME=hidegame MAN= boggle.6 - -beforeinstall: - ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/helpfile \ - ${DESTDIR}/usr/share/games/boggle/helpfile +FILES= helpfile +FILESDIR=/usr/share/games/boggle .include "../../Makefile.inc" .include <bsd.prog.mk> |