From 75e9858eb6ef123cbc691953a4c68059818b9af3 Mon Sep 17 00:00:00 2001 From: Michael Gebetsroither Date: Fri, 29 Aug 2008 13:03:57 +0200 Subject: [PATCH] added doc/Makefile --- doc/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 doc/Makefile diff --git a/doc/Makefile b/doc/Makefile new file mode 100644 index 0000000..ff2d4ed --- /dev/null +++ b/doc/Makefile @@ -0,0 +1,20 @@ + +%.html : %.txt ; + asciidoc -b xhtml11 $^ + +%.gz : %.txt ; + a2x -f manpage $^ 2>&1 |grep -v '^Note: ' >&2 + gzip -f --best $(patsubst %.txt,%, $^) + +MANPAGES = $(patsubst %.txt,%,$(wildcard *.txt)) + +all: doc + +doc: doc_man doc_html +doc_html: $(addsuffix .html, $(MANPAGES)) +doc_man: $(addsuffix .gz, $(MANPAGES)) + +clean: + @for i in $(MANPAGES); do \ + rm -f $$i.html $$i.xml $$i.gz; done + -- 2.1.4