doc/Makefile: generate man pages from asciidoc

pull/204/head
Axel Burri 2017-10-09 22:17:45 +02:00
parent 2042c6ccd9
commit c26b7d3748
2 changed files with 31 additions and 0 deletions

2
doc/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*.[1-8]
*.[1-8].gz

29
doc/Makefile Normal file
View File

@ -0,0 +1,29 @@
DOCS = FAQ.md \
upgrade_to_v0.23.0.md
MAN_MAN1 = btrbk.1 \
ssh_filter_btrbk.1
MAN_MAN5 = btrbk.conf.5
GZ_MAN1 = $(addsuffix .gz,$(MAN_MAN1))
GZ_MAN5 = $(addsuffix .gz,$(MAN_MAN5))
all: man
man: man1 man5
man1: $(GZ_MAN1)
man5: $(GZ_MAN5)
clean:
rm -f $(GZ_MAN1) $(GZ_MAN5)
%.gz : %
gzip -9f $<
# convert using a2x from asciidoc package: http://asciidoc.org
%.1 : %.1.asciidoc
a2x -d manpage -f manpage $<
%.5 : %.5.asciidoc
a2x -d manpage -f manpage $<
%.html : %.asciidoc
asciidoc -b html -d article -o $@ $<