]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - atc/Makefile
clean up import
[bsdgames-darwin.git] / atc / Makefile
1 # $NetBSD: Makefile,v 1.9 1995/03/21 15:03:38 cgd Exp $
2 # @(#)Makefile 8.1 (Berkeley) 5/31/93
3
4 PROG= atc
5 CFLAGS+=-DBSD -I${.CURDIR} -I.
6 SRCS= extern.c grammar.c graphics.c input.c lex.c list.c log.c \
7 main.c tunable.c update.c
8 MAN= atc.6
9 LDADD= -ll -lm -lcurses -ltermcap
10 DPADD= ${LIBL} ${LIBM} ${LIBTERM} ${LIBCURSES}
11 GAMES= ATC_scores Game_List Killer crossover default easy game_2 \
12 Atlantis OHare Tic-Tac-Toe airports box crosshatch game_3 \
13 game_4 novice two-corners
14 CLEANFILES=grammar.c y.tab.h lex.c
15 HIDEGAME=hidegame
16
17 beforeinstall:
18 @if [ ! -d ${DESTDIR}/usr/share/games/atc ]; then \
19 /bin/rm -f ${DESTDIR}/usr/share/games/atc ; \
20 mkdir -p ${DESTDIR}/usr/share/games/atc ; \
21 chown root.wheel ${DESTDIR}/usr/share/games/atc ; \
22 chmod 755 ${DESTDIR}/usr/share/games/atc ; \
23 else \
24 true ; \
25 fi
26 (cd ${.CURDIR}/games; install -c -o ${BINOWN} -g ${BINGRP} -m 400 \
27 ${GAMES} ${DESTDIR}/usr/share/games/atc)
28
29 .include <bsd.prog.mk>