]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - cgram/Makefile
cgram: provide usage on incorrect invocation
[bsdgames-darwin.git] / cgram / Makefile
1 # $NetBSD: Makefile,v 1.1 2013/08/04 05:42:47 dholland Exp $
2
3 PROG=cgram
4 SRCS=cgram.c
5 MAN=cgram.6
6
7 all: $(PROG)
8
9 $(PROG): $(SRCS)
10 $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(SRCS) -lncursesw -I$(ROOT)
11 $(STRIP) $(PROG)
12
13 install: $(PROG) $(MAN)
14 $(GINSTALL) -Dm755 $(PROG) $(DESTDIR)/$(PREFIX)/games/$(PROG)
15 $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/$(PREFIX)/share/man/man6/$(MAN)
16
17 clean:
18 rm -f $(CLEANFILES) $(PROG)
19
20 .PHONY: all clean install