xref: /openbsd/games/atc/Makefile (revision e5e44c57)
1#	$OpenBSD: Makefile,v 1.14 2006/06/30 19:10:23 otto Exp $
2
3PROG=	atc
4CFLAGS+=-I${.CURDIR} -I.
5SRCS=	extern.c grammar.y graphics.c input.c lex.l list.c log.c \
6	main.c update.c
7MAN=	atc.6
8LDADD=	-ll -lm -lcurses
9DPADD=	${LIBL} ${LIBM} ${LIBCURSES}
10GAMES=	Game_List Killer crossover default easy game_2 \
11	Atlantis OHare Tic-Tac-Toe airports box crosshatch game_3 \
12	game_4 novice two-corners
13BINMODE=2555
14
15beforeinstall:
16	@if [ ! -d ${DESTDIR}/usr/share/games/atc ]; then \
17                /bin/rm -f ${DESTDIR}/usr/share/games/atc ; \
18                mkdir -p ${DESTDIR}/usr/share/games/atc ; \
19                chown root:wheel ${DESTDIR}/usr/share/games/atc ; \
20                chmod 755 ${DESTDIR}/usr/share/games/atc ; \
21        else \
22                true ; \
23        fi
24	(cd ${.CURDIR}/games; ${INSTALL} ${INSTALL_COPY} \
25	    -o ${BINOWN} -g ${BINGRP} \
26	    -m 444 ${GAMES} ${DESTDIR}/usr/share/games/atc)
27	@if [ ! -f ${DESTDIR}/var/games/atc_score ]; then \
28	    ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 664 \
29		/dev/null ${DESTDIR}/var/games/atc_score ; \
30	else \
31                true ; \
32        fi
33
34.include <bsd.prog.mk>
35