added doc/Makefile
authorMichael Gebetsroither <michael.geb@gmx.at>
Fri, 29 Aug 2008 11:03:57 +0000 (13:03 +0200)
committerMichael Gebetsroither <michael.geb@gmx.at>
Fri, 29 Aug 2008 11:03:57 +0000 (13:03 +0200)
doc/Makefile [new file with mode: 0644]

diff --git a/doc/Makefile b/doc/Makefile
new file mode 100644 (file)
index 0000000..ff2d4ed
--- /dev/null
@@ -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
+