1 # $NetBSD: Makefile,v 1.30 2011/08/16 10:14:40 christos Exp $
2 # @(#)Makefile 8.1 (Berkeley) 5/31/93
5 SRCS= extern.c graphics.c input.c list.c log.c \
6 main.c tunable.c update.c
8 FILES=${GAMES:S@^@${.CURDIR}/games/@g}
9 FILESDIR=$(PREFIX)/share/games/atc
14 $(PROG): $(SRCS) grammar.y lex.l
15 yacc -d grammar.y -o grammar.c
17 $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(SRCS) grammar.c lex.yy.c -lncursesw $(LIBFLA) -I$(ROOT)
20 install: $(PROG) $(MAN)
21 $(GINSTALL) -Dm2755 $(PROG) $(DESTDIR)/$(PREFIX)/games/$(PROG)
22 $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/$(PREFIX)/share/man/man6/$(MAN)
23 mkdir -p $(DESTDIR)/$(PREFIX)/share/games
24 cp -r games $(DESTDIR)/$(PREFIX)/share/games/atc
25 chmod -R 644 $(DESTDIR)/$(PREFIX)/share/games/atc/*
26 mkdir -p $(DESTDIR)/$(LOCALSTATEDIR)/games/
30 rm -f $(CLEANFILES) $(PROG) grammar.c grammar.h lex.yy.c
32 .PHONY: all clean install