+
+cgit.1.txt: cgit.c
+ sed -n '/\*\*/,/\*\*/p' < $< | \
+ sed '/\*\*/d' | \
+ sed -n 's/^ \* *//p' > $@
+
+%.1.html : %.1.txt
+ asciidoc -b xhtml11 -d manpage -f asciidoc.conf $<
+
+%.1.xml : %.1.txt
+ asciidoc -b docbook -d manpage -f asciidoc.conf $<
+
+%.1 : %.1.xml
+ xmlto man $<