-# $NetBSD: Makefile,v 1.6 1996/10/18 02:45:34 thorpej 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
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>