Skip to content

Commit 2794410

Browse files
committed
doc: Remove generated files and add rules to build manpages
Those files can be built by doc/generate_manpages.sh. The manpages are needed for the installation, so add Makefile rules for them. Git must ignore the generated manpages. Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent 7a116ce commit 2794410

35 files changed

+17
-12646
lines changed

.gitignore

+5-3
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ vs2010/LIB_Release/*
2020
vs2010/LIB_OpenCL_Release/*
2121
vs2010/LIB_OpenCL_Debug/*
2222

23-
24-
2523
# Linux
2624
# ignore local configuration
2725
config.*
@@ -36,7 +34,11 @@ libtool
3634
stamp-h1
3735
tesseract.pc
3836
config_auto.h
39-
doc/html/*
37+
/doc/html/*
38+
/doc/*.1
39+
/doc/*.5
40+
/doc/*.html
41+
/doc/*.xml
4042
api/tesseract
4143
training/ambiguous_words
4244
training/classifier_tester

doc/Makefile.am

+12
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1+
asciidoc=asciidoc -d manpage
2+
13
man_MANS = cntraining.1 combine_tessdata.1 mftraining.1 tesseract.1 \
24
unicharset_extractor.1 wordlist2dawg.1 unicharambigs.5 \
35
unicharset.5 ambiguous_words.1 shapeclustering.1 dawg2wordlist.1
6+
7+
if MAINTAINER_MODE
8+
49
EXTRA_DIST = $(man_MANS) Doxyfile
10+
11+
%: %.asc
12+
$(asciidoc) -o $@ $<
13+
14+
endif # MAINTAINER_MODE
15+
16+
MAINTAINERCLEANFILES = $(man_MANS) Doxyfile

doc/ambiguous_words.1

-46
This file was deleted.

0 commit comments

Comments
 (0)