X-Git-Url: http://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=doc%2FMakefile;fp=doc%2FMakefile;h=40881c0311a360e609e7ba0278f9e45b4a8314b9;hb=dd31080f647066e88d42cd2a7981631e0cf632ba;hp=0000000000000000000000000000000000000000;hpb=37cf80bb50d9d322c5c468fbed7c8ffbafb8bd2e;p=grml-autoconfig.git diff --git a/doc/Makefile b/doc/Makefile new file mode 100644 index 0000000..40881c0 --- /dev/null +++ b/doc/Makefile @@ -0,0 +1,24 @@ +%.html : %.txt ; + asciidoc -b xhtml11 $^ + +%.gz : %.txt ; + asciidoc -d manpage -b docbook $^ + #sed -i 's///g' `echo $^ |sed -e 's/.txt/.xml/'` + xsltproc -nonet /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl `echo $^ |sed -e 's/.txt/.xml/'` &>/dev/null + # ugly hack to avoid '.sp' at the end of a sentence or paragraph: + sed -i 's/\.sp//' `echo $^ | sed -e 's/.txt//'` + gzip -f --best `echo $^ |sed -e 's/.txt//'` + +MANPAGES = grml-autoconfig + +all: doc + +doc: doc_html +# 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 $$i; done +