tesseract/doc/Makefile.am
Stefan Weil b70a456788 Add Makefile rule to build HTML manpages
They can be built optionally by `make html` (only for automake builds).

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-10-04 22:36:03 +02:00

47 lines
714 B
Makefile

# doc/Makefile.am
if ASCIIDOC
asciidoc=asciidoc -d manpage
man_MANS = \
combine_lang_model.1 \
combine_tessdata.1 \
dawg2wordlist.1 \
lstmeval.1 \
lstmtraining.1 \
merge_unicharsets.1 \
set_unicharset_properties.1 \
tesseract.1 \
text2image.1 \
unicharambigs.5 \
unicharset_extractor.1 \
wordlist2dawg.1
if !DISABLED_LEGACY_ENGINE
man_MANS += \
ambiguous_words.1 \
classifier_tester.1 \
cntraining.1 \
mftraining.1 \
shapeclustering.1 \
unicharset.5
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