]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - atc/Makefile
.y.c <sys.mk> rule fixes. Don't create a y.tab.h file unless asked for,
[bsdgames-darwin.git] / atc / Makefile
index 1ffb5d5ff5a113ad7000bf425a06d3bf7d77aca4..3c63b0aa885be226b1a9371e3e74fa45086f7e28 100644 (file)
@@ -1,26 +1,25 @@
-#      @(#)Makefile    5.7 (Berkeley) 6/27/90
+#      $NetBSD: Makefile,v 1.17 1998/04/09 00:32:32 tv Exp $
+#      @(#)Makefile    8.1 (Berkeley) 5/31/93
 
 PROG=  atc
-CFLAGS+=-DBSD -I${.CURDIR} -I.
-SRCS=  extern.c grammar.c graphics.c input.c lex.c list.c log.c \
+CPPFLAGS+=-DBSD -I${.CURDIR} -I. -DYY_NO_UNPUT
+SRCS=  extern.c grammar.y graphics.c input.c lex.l list.c log.c \
        main.c tunable.c update.c
-MAN6=  atc.0
-DPADD= ${usr/lib/libl.a ${LIBM} ${LIBTERM} ${LIBCURSES}
-LDADD= -ll -lm -lcurses -ltermcap
-GAMES= ATC_scores Game_List Killer crossover default easy game_2
-CLEANFILES=grammar.c y.tab.h lex.c
+YHEADER=1
+MAN=   atc.6
+LDADD= -ll -lm -lcurses
+DPADD= ${LIBL} ${LIBM} ${LIBCURSES}
+GAMES= ATC_scores Game_List Killer crossover default easy game_2 \
+       Atlantis OHare Tic-Tac-Toe airports box crosshatch game_3 \
+       game_4 novice two-corners
 HIDEGAME=hidegame
+SETGIDGAME=yes
+FILES=${GAMES:S@^@${.CURDIR}/games/@g}
+FILESDIR=/usr/share/games/atc
+FILESMODE=440
 
-beforeinstall: 
-       @if [ ! -d ${DESTDIR}/usr/share/games/atc ]; then \
-                /bin/rm -f ${DESTDIR}/usr/share/games/atc ; \
-                mkdir -p ${DESTDIR}/usr/share/games/atc ; \
-                chown root.wheel ${DESTDIR}/usr/share/games/atc ; \
-                chmod 755 ${DESTDIR}/usr/share/games/atc ; \
-        else \
-                true ; \
-        fi
-       (cd ${.CURDIR}/games; install -c -o ${BINOWN} -g ${BINGRP} -m 400 \
-           ${GAMES} ${DESTDIR}/usr/share/games/atc)
+y.tab.h:       grammar.c
+
+lex.o: y.tab.h
 
 .include <bsd.prog.mk>