Sync with NetBSD. Many fixes to include:
[dragonfly.git] / games / snake / snake / Makefile
1 #       @(#)Makefile    8.1 (Berkeley) 5/31/93
2 # $FreeBSD: src/games/snake/snake/Makefile,v 1.5.2.3 2002/08/07 16:31:42 ru Exp $
3 # $DragonFly: src/games/snake/snake/Makefile,v 1.3 2006/09/03 23:23:10 pavalos Exp $
4
5 PROG=   snake
6 SRCS=   snake.c
7 MAN=    snake.6
8 DPADD=  ${LIBM} ${LIBCURSES}
9 LDADD=  -lm -lcurses
10 HIDEGAME=hidegame
11 MLINKS= snake.6 snscore.6
12
13 beforeinstall:
14 .if !exists(${DESTDIR}/var/games/snakerawscores)
15         ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
16             ${DESTDIR}/var/games/snakerawscores
17 .endif
18 .if !exists(${DESTDIR}/var/games/snake.log)
19         ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
20             ${DESTDIR}/var/games/snake.log
21 .endif
22
23 .include "../../Makefile.inc"
24 .include <bsd.prog.mk>