X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/95e5fff2a7e41ff5df14257ae6e7a7693b43d360..23454acb66be2a88647262d98d50e0f115519ea0:/boggle/Makefile diff --git a/boggle/Makefile b/boggle/Makefile index bb12f31f..fba54e28 100644 --- a/boggle/Makefile +++ b/boggle/Makefile @@ -1,43 +1,29 @@ -# $NetBSD: Makefile,v 1.20 2003/10/19 01:01:44 lukem Exp $ -# @(#)Makefile 8.1 (Berkeley) 6/11/93 - -.include - -SUBDIR= boggle mkdict mkindex - -MKDICTDIR!= cd $(.CURDIR)/mkdict; ${PRINTOBJDIR} -MKDICT=${MKDICTDIR}/mkdict -MKINDEXDIR!= cd $(.CURDIR)/mkindex; ${PRINTOBJDIR} -MKINDEX=${MKINDEXDIR}/mkindex -WORDS=${NETBSDSRCDIR}/share/dict/web2 -DICTFILES=dictionary dictindex -.if ${MKSHARE} != "no" -FILES=${DICTFILES} -FILESDIR=/usr/share/games/boggle -.endif -CLEANFILES+=${DICTFILES} - -realall: ${FILES} - -${MKDICT}: - @cd ${.CURDIR}/mkdict && ${MAKE} - -${MKINDEX}: - @cd ${.CURDIR}/mkindex && ${MAKE} - -dictionary: ${WORDS} ${MKDICT} - ${_MKMSG} " create ${.TARGET}" - ${_MKCMD}\ - rm -f ${.TARGET} - ${_MKCMD}\ - ${MKDICT} < ${WORDS} > ${.TARGET} - -dictindex: dictionary ${MKINDEX} - ${_MKMSG} " create ${.TARGET}" - ${_MKCMD}\ - rm -f ${.TARGET} - ${_MKCMD}\ - ${MKINDEX} < dictionary > ${.TARGET} - -.include -.include +all: dictionary dictindex boggle + +mkdict: + $(MAKE) -C mkdict + +mkindex: + $(MAKE) -C mkindex + +boggle: + $(MAKE) -C boggle + +clean: + rm -f dictionary dictindex + $(MAKE) -C mkdict clean + $(MAKE) -C mkindex clean + $(MAKE) -C boggle clean + +dictionary: mkdict + ./mkdict/mkdict < mkdict/web2 > dictionary + +dictindex: mkindex dictionary + ./mkindex/mkindex < dictionary > dictindex + +install: dictindex dictionary boggle + $(GINSTALL) -Dm644 dictionary $(DESTDIR)/$(PREFIX)/share/games/boggle/dictionary + $(GINSTALL) -Dm644 dictindex $(DESTDIR)/$(PREFIX)/share/games/boggle/dictindex + $(MAKE) -C boggle install + +.PHONY: all clean install mkdict mkindex boggle