add manpage

This commit is contained in:
Björn Esser
2014-12-05 10:53:56 +01:00
parent a9505d949e
commit 986bb70d9b
5 changed files with 309 additions and 4 deletions

View File

@@ -1,8 +1,9 @@
CC ?= gcc
CFLAGS += -Wall -Wextra
LIBS = -lcurses
ASCIIDOC ?= a2x
CC ?= gcc
CFLAGS := -Wall -Wextra $(CFLAGS)
LIBS = -lcurses
all: 2048
.PHONY: clean man man-nc
2048: src/2048.c
$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) src/2048.c -o 2048
@@ -10,5 +11,15 @@ all: 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