2012-03-07 06:41:43 +08:00
|
|
|
+ACLOCAL_AMFLAGS = -I m4
|
2012-03-04 05:13:42 +08:00
|
|
|
SUBDIRS = ccutil viewer cutil image ccstruct dict classify wordrec neural_networks/runtime textord cube ccmain api . java tessdata testing doc training
|
2012-03-03 07:51:33 +08:00
|
|
|
|
2010-10-01 00:27:39 +08:00
|
|
|
#if USING_GETTEXT
|
|
|
|
#SUBDIRS += po
|
|
|
|
#AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\"
|
|
|
|
#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-05 08:11:38 +08:00
|
|
|
.PHONY: install-langs
|
|
|
|
install-langs:
|
|
|
|
@cd "$(top_builddir)/tessdata" && $(MAKE) $@
|