Skip to content

Commit

Permalink
Add Makefile rule to build HTML manpages
Browse files Browse the repository at this point in the history
They can be built optionally by `make html` (only for automake builds).

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Oct 4, 2018
1 parent 3e9b0ac commit b70a456
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion doc/Makefile.am
Expand Up @@ -6,7 +6,7 @@ asciidoc=asciidoc -d manpage


man_MANS = \
combine_lang_model.1 \
combine_lang_model.1 \
combine_tessdata.1 \
dawg2wordlist.1 \
lstmeval.1 \
Expand All @@ -31,9 +31,16 @@ endif

EXTRA_DIST = $(man_MANS) Doxyfile

.PHONY: html

html: $(patsubst %,%.html,$(man_MANS))

%: %.asc
$(asciidoc) -o $@ $<

%.html: %.asc
asciidoc -b html5 -o $@ $<

MAINTAINERCLEANFILES = $(man_MANS) Doxyfile

endif

0 comments on commit b70a456

Please sign in to comment.