projects
/
grml-scripts-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
517f3f0
)
added doc/Makefile
author
Michael Gebetsroither
<michael.geb@gmx.at>
Fri, 29 Aug 2008 11:03:57 +0000
(13:03 +0200)
committer
Michael Gebetsroither
<michael.geb@gmx.at>
Fri, 29 Aug 2008 11:03:57 +0000
(13:03 +0200)
doc/Makefile
[new file with mode: 0644]
patch
|
blob
diff --git a/doc/Makefile
b/doc/Makefile
new file mode 100644
(file)
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
+