create manpages with one target

This commit is contained in:
Björn Esser 2014-12-13 15:47:55 +01:00
parent 2a69fdfceb
commit bc6f565c61

View File

@ -3,7 +3,7 @@ CC ?= gcc
CFLAGS := -Wall -Wextra $(CFLAGS)
LIBS = -lcurses
.PHONY: clean man man-nc
.PHONY: clean man man-2048 man-2048nc
2048: src/2048.c
$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) src/2048.c -o 2048
@ -16,10 +16,12 @@ all: 2048
clean:
rm -f 2048 2048nc
man:
man: man-2048 man-2048nc
man-2048:
rm -f man/2048.1
$(ASCIIDOC) -d manpage -f manpage man/2048.1.txt
man-nc:
man-2048nc:
rm -f man/2048nc.1
$(ASCIIDOC) -d manpage -f manpage man/2048nc.1.txt