Skip to content

Commit

Permalink
Fix build rule for manpages
Browse files Browse the repository at this point in the history
This is similar to commit 2106cba
which fixed doc/generate_manpages.sh.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Feb 1, 2019
1 parent 2106cba commit 39ed30a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/Makefile.am
Expand Up @@ -2,9 +2,6 @@

if ASCIIDOC

asciidoc=asciidoc -d manpage


man_MANS = \
combine_lang_model.1 \
combine_tessdata.1 \
Expand All @@ -29,14 +26,17 @@ man_MANS += \
unicharset.5
endif

man_xslt = http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl

EXTRA_DIST = $(man_MANS) Doxyfile

.PHONY: html

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

%: %.asc
$(asciidoc) -o $@ $<
asciidoc -b docbook -d manpage -o - $< | \
xsltproc --nonet $(man_xslt) -

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

0 comments on commit 39ed30a

Please sign in to comment.