%.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 2>&1
gzip -f --best `echo $^ |sed -e 's/.txt//'`
MANPAGES = grml-autoconfig.1 grml-autoconfig.8 restore-config.1 save-config.1
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 $$i; done