2012-03-16 05:05:12 +08:00
|
|
|
## run autogen.sh to create Makefile.in from this file
|
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
2012-03-23 04:01:33 +08:00
|
|
|
SUBDIRS = ccutil viewer cutil image ccstruct dict classify wordrec neural_networks/runtime textord cube ccmain api . tessdata testing doc training
|
|
|
|
|
|
|
|
if !GRAPHICS_DISABLED
|
|
|
|
SUBDIRS += java
|
|
|
|
endif
|
2012-03-03 07:51:33 +08:00
|
|
|
|
2010-10-01 00:27:39 +08:00
|
|
|
#if USING_GETTEXT
|
|
|
|
#SUBDIRS += po
|
2012-03-23 04:01:33 +08:00
|
|
|
#AM_CPPFLAGS += -DLOCALEDIR=\"$(localedir)\"
|
2010-10-01 00:27:39 +08:00
|
|
|
#endif
|
2007-03-08 04:03:40 +08:00
|
|
|
|
2011-08-19 02:00:22 +08:00
|
|
|
EXTRA_DIST = eurotext.tif phototest.tif ReleaseNotes \
|
2012-03-07 06:41:43 +08:00
|
|
|
aclocal.m4 config configure.ac autogen.sh tesseract.spec contrib
|
2007-05-17 09:52:36 +08:00
|
|
|
|
2007-03-08 04:03:40 +08:00
|
|
|
#EXTRA_DIST = doc/html doc/@PACKAGE_NAME@_@PACKAGE_VERSION@.pdf doc/@PACKAGE_NAME@_@PACKAGE_VERSION@.ps.gz
|
|
|
|
|
2012-03-04 05:13:42 +08:00
|
|
|
uninstall-hook:
|
2012-03-03 21:22:51 +08:00
|
|
|
rm -rf $(DESTDIR)$(includedir)
|
|
|
|
|
2007-03-08 04:03:40 +08:00
|
|
|
dist-hook:
|
2011-08-19 05:33:28 +08:00
|
|
|
# Need to remove .svn directories from directories
|
2007-03-08 04:03:40 +08:00
|
|
|
# added using EXTRA_DIST. $(distdir)/tessdata would in
|
|
|
|
# theory suffice.
|
2008-04-22 22:49:14 +08:00
|
|
|
rm -rf `find $(distdir) -name .svn`
|
|
|
|
rm -rf `find $(distdir) -name .deps`
|
2011-08-19 05:33:28 +08:00
|
|
|
rm -rf `find $(distdir) -name Makefile.in`
|
2012-03-05 08:11:38 +08:00
|
|
|
|
2012-03-07 06:41:43 +08:00
|
|
|
# 'make install' will install only libraries and programs (no language
|
|
|
|
# data files)
|
|
|
|
# 'make install LANGS=' will install libraries, programs and all
|
|
|
|
# language datafiles in tessdata/
|
|
|
|
# 'make install LANGS="eng ara deu"' will install only English, Arabic
|
|
|
|
# and German language datafiles if they are present in tessdata/
|
|
|
|
install-data-hook:
|
|
|
|
@if test $${LANGS+defined}; then \
|
|
|
|
if test "$${LANGS}" == ""; then \
|
|
|
|
echo ____All language files will be installed; \
|
|
|
|
else \
|
|
|
|
echo ___Folowing language files will be installed: "$$LANGS"; \
|
|
|
|
fi; \
|
|
|
|
cd "$(top_builddir)/tessdata" && $(MAKE) install-langs LANG="${LANGS}"; \
|
|
|
|
else \
|
|
|
|
echo No language file is installed.; \
|
|
|
|
fi;
|
|
|
|
|
2012-03-16 05:05:12 +08:00
|
|
|
.PHONY: install-langs ScrollView.jar
|
2012-03-05 08:11:38 +08:00
|
|
|
install-langs:
|
|
|
|
@cd "$(top_builddir)/tessdata" && $(MAKE) $@
|
2012-03-16 05:05:12 +08:00
|
|
|
|
|
|
|
ScrollView.jar:
|
|
|
|
@cd "$(top_builddir)/java" && $(MAKE) $@
|
|
|
|
|
|
|
|
doc-dummy:
|
|
|
|
|
|
|
|
doc: doc-dummy
|
|
|
|
-doxygen doc/Doxyfile
|
|
|
|
|
|
|
|
doc-pack: doc
|
|
|
|
-chmod a+r $(top_srcdir)/doc/html/*
|
|
|
|
@tar --create --directory=$(top_srcdir)/doc/html --verbose --file=- . | gzip -c -9 > $(top_srcdir)/@PACKAGE_NAME@-@PACKAGE_VERSION@-doc-html.tar.gz;
|
|
|
|
|
|
|
|
doc-clean:
|
|
|
|
rm -rf $(top_srcdir)/doc/html/*
|