Makefile revision 1.8
1# from: @(#)Makefile 5.7 (Berkeley) 6/27/90 2# $Id: Makefile,v 1.8 1994/12/25 12:38:41 pk Exp $ 3 4PROG= atc 5CFLAGS+=-DBSD -I${.CURDIR} -I. 6SRCS= extern.c grammar.c graphics.c input.c lex.c list.c log.c \ 7 main.c tunable.c update.c 8MAN= atc.6 9LDADD= -ll -lm -lcurses -ltermcap 10DPADD= ${LIBL} ${LIBM} ${LIBTERM} ${LIBCURSES} 11GAMES= 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 14CLEANFILES=grammar.c y.tab.h lex.c 15HIDEGAME=hidegame 16 17beforeinstall: 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> 30