Skip to content

Commit 39ed30a

Browse files
committed
Fix build rule for manpages
This is similar to commit 2106cba which fixed doc/generate_manpages.sh. Signed-off-by: Stefan Weil <[email protected]>
1 parent 2106cba commit 39ed30a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/Makefile.am

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
if ASCIIDOC
44

5-
asciidoc=asciidoc -d manpage
6-
7-
85
man_MANS = \
96
combine_lang_model.1 \
107
combine_tessdata.1 \
@@ -29,14 +26,17 @@ man_MANS += \
2926
unicharset.5
3027
endif
3128

29+
man_xslt = http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
30+
3231
EXTRA_DIST = $(man_MANS) Doxyfile
3332

3433
.PHONY: html
3534

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

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

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

0 commit comments

Comments
 (0)