2048-cli/Makefile
2014-12-05 12:21:13 +01:00

26 lines
464 B
Makefile

ASCIIDOC ?= a2x
CC ?= gcc
CFLAGS := -Wall -Wextra $(CFLAGS)
LIBS = -lcurses
.PHONY: clean man man-nc
2048: src/2048.c
$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) src/2048.c -o 2048
2048nc: src/2048.c
$(CC) -DNO_CURSES=1 $(CFLAGS) $(LDFLAGS) src/2048.c -o 2048nc
all: 2048
clean:
rm -f 2048 2048nc
man:
rm -f man/2048.1
$(ASCIIDOC) -d manpage -f manpage man/2048.1.txt
man-nc:
rm -f man/2048nc.1
$(ASCIIDOC) -d manpage -f manpage man/2048nc.1.txt