Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (17 sloc) 709 Bytes
%.html : %.txt ;
asciidoc -b xhtml11 $^
%.gz : %.txt ;
asciidoc -d manpage -b docbook $^
#sed -i 's/<emphasis role="strong">/<emphasis role="bold">/g' `echo $^ |sed -e 's/.txt/.xml/'`
xsltproc -novalid -nonet /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl `echo $^ |sed -e 's/.txt/.xml/'` > /dev/null 2>&1
# 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-feedback.1
all: doc
doc: doc_man doc_html
doc_html: $(addsuffix .html, $(MANPAGES))
doc_man: $(addsuffix .gz, $(MANPAGES))
@for i in $(MANPAGES); do \
rm -f $$i.html $$i.xml $$i.gz $$i; done