1# $OpenBSD: Makefile,v 1.12 2002/05/31 03:46:32 pjanzen Exp $ 2 3PROG= atc 4CFLAGS+=-I${.CURDIR} -I. 5SRCS= extern.c grammar.c graphics.c input.c lex.c 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 13CLEANFILES=grammar.c y.tab.h lex.c 14BINMODE=2555 15 16beforeinstall: 17 @if [ ! -d ${DESTDIR}/usr/share/games/atc ]; then \ 18 /bin/rm -f ${DESTDIR}/usr/share/games/atc ; \ 19 mkdir -p ${DESTDIR}/usr/share/games/atc ; \ 20 chown root.wheel ${DESTDIR}/usr/share/games/atc ; \ 21 chmod 755 ${DESTDIR}/usr/share/games/atc ; \ 22 else \ 23 true ; \ 24 fi 25 (cd ${.CURDIR}/games; ${INSTALL} ${INSTALL_COPY} \ 26 -o ${BINOWN} -g ${BINGRP} \ 27 -m 444 ${GAMES} ${DESTDIR}/usr/share/games/atc) 28 @if [ ! -f ${DESTDIR}/var/games/atc_score ]; then \ 29 ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 664 \ 30 /dev/null ${DESTDIR}/var/games/atc_score ; \ 31 else \ 32 true ; \ 33 fi 34 35.include <bsd.prog.mk> 36