From bc6f565c61529d78ce00523a4419d7c451f5fe32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Sat, 13 Dec 2014 15:47:55 +0100 Subject: [PATCH] create manpages with one target --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 4ba965f..be1b60c 100644 --- a/Makefile +++ b/Makefile @@ -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