-# from: @(#)Makefile 5.11 (Berkeley) 5/11/90
-# $Id: Makefile,v 1.3 1993/08/01 05:45:43 mycroft Exp $
+# $NetBSD: Makefile,v 1.12 1999/02/13 02:54:21 lukem Exp $
+# @(#)Makefile 8.1 (Berkeley) 5/31/93
+
+.include <bsd.own.mk>
PROG= cribbage
-DPADD= ${LIBCURSES} ${LIBTERM}
-LDADD= -lcurses -ltermlib
+DPADD= ${LIBCURSES}
+LDADD= -lcurses
SRCS= extern.c crib.c cards.c instr.c io.c score.c support.c
-MAN6= cribbage.0
+MAN= cribbage.6
HIDEGAME=hidegame
-
-beforeinstall:
- install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/cribbage.n \
- ${DESTDIR}/usr/share/games/cribbage.instr
+SETGIDGAME=yes
+.if ${MKSHARE} != "no"
+FILES= cribbage.n
+FILESNAME=cribbage.instr
+FILESDIR=/usr/share/games
+.endif
.include <bsd.prog.mk>