2012-03-16 05:05:12 +08:00
|
|
|
## run autogen.sh to create Makefile.in from this file
|
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
2013-09-27 04:23:17 +08:00
|
|
|
|
|
|
|
if ENABLE_TRAINING
|
|
|
|
TRAINING_SUBDIR = training
|
|
|
|
training:
|
|
|
|
@cd "$(top_builddir)/training" && $(MAKE)
|
|
|
|
training-install:
|
|
|
|
@cd "$(top_builddir)/training" && $(MAKE) install
|
|
|
|
else
|
|
|
|
training:
|
|
|
|
@echo "Need to reconfigure project, so there are no errors"
|
|
|
|
endif
|
|
|
|
|
2013-10-04 05:26:35 +08:00
|
|
|
.PHONY: install-langs ScrollView.jar install-jars $(TRAINING_SUBDIR)
|
2013-09-27 04:23:17 +08:00
|
|
|
|
2014-02-05 08:53:56 +08:00
|
|
|
SUBDIRS = ccutil viewer cutil opencl ccstruct dict classify wordrec neural_networks/runtime textord cube ccmain api . tessdata doc
|
2012-03-03 07:51:33 +08:00
|
|
|
|
2011-08-19 02:00:22 +08:00
|
|
|
EXTRA_DIST = eurotext.tif phototest.tif ReleaseNotes \
|
2014-01-18 02:54:47 +08:00
|
|
|
aclocal.m4 config configure.ac autogen.sh contrib \
|
2013-09-27 04:23:17 +08:00
|
|
|
tesseract.pc.in $(TRAINING_SUBDIR) java doc testing
|
2007-05-17 09:52:36 +08:00
|
|
|
|
2013-09-27 04:23:17 +08:00
|
|
|
DIST_SUBDIRS = $(SUBDIRS)
|
2007-03-08 04:03:40 +08:00
|
|
|
|
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`
|
2013-09-27 04:23:17 +08:00
|
|
|
rm -rf `find $(distdir) -name .git`
|
2008-04-22 22:49:14 +08:00
|
|
|
rm -rf `find $(distdir) -name .deps`
|
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/
|
2013-10-04 05:26:35 +08:00
|
|
|
# 'make install LANGS="eng ara deu"' will install libraries, programs
|
|
|
|
# English, Arabic and German language datafiles if they are present
|
|
|
|
# in tessdata/
|
|
|
|
# 'make install-langs LANGS="eng ara deu"' will install only English,
|
|
|
|
# Arabic and German language datafiles if they are present
|
|
|
|
# in tessdata/
|
2012-03-07 06:41:43 +08:00
|
|
|
install-data-hook:
|
|
|
|
@if test $${LANGS+defined}; then \
|
2013-10-04 05:26:35 +08:00
|
|
|
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}"; \
|
2012-03-07 06:41:43 +08:00
|
|
|
else \
|
|
|
|
echo No language file is installed.; \
|
|
|
|
fi;
|
|
|
|
|
2012-03-05 08:11:38 +08:00
|
|
|
install-langs:
|
|
|
|
@cd "$(top_builddir)/tessdata" && $(MAKE) $@
|
2013-09-27 04:23:17 +08:00
|
|
|
|
2012-03-16 05:05:12 +08:00
|
|
|
ScrollView.jar:
|
|
|
|
@cd "$(top_builddir)/java" && $(MAKE) $@
|
|
|
|
|
2013-10-04 05:26:35 +08:00
|
|
|
install-jars:
|
|
|
|
@cd "$(top_builddir)/java" && $(MAKE) $@
|
|
|
|
|
2012-03-16 05:05:12 +08:00
|
|
|
doc-dummy:
|
|
|
|
|
|
|
|
doc: doc-dummy
|
2013-09-27 04:23:17 +08:00
|
|
|
-srcdir="$(top_srcdir)" builddir="$(top_builddir)" \
|
|
|
|
version="@PACKAGE_VERSION@" name="@PACKAGE_NAME@" \
|
|
|
|
doxygen $(top_srcdir)/doc/Doxyfile
|
2012-03-16 05:05:12 +08:00
|
|
|
|
|
|
|
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/*
|
2012-07-29 05:17:20 +08:00
|
|
|
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
pkgconfig_DATA = tesseract.pc
|