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:
|
2016-02-13 07:04:59 +08:00
|
|
|
$(MAKE)
|
2013-09-27 04:23:17 +08:00
|
|
|
@cd "$(top_builddir)/training" && $(MAKE)
|
|
|
|
training-install:
|
|
|
|
@cd "$(top_builddir)/training" && $(MAKE) install
|
2016-02-13 07:04:59 +08:00
|
|
|
training-uninstall:
|
|
|
|
@cd "$(top_builddir)/training" && $(MAKE) uninstall
|
2014-03-29 07:21:49 +08:00
|
|
|
clean-local:
|
|
|
|
@cd "$(top_builddir)/training" && $(MAKE) clean
|
2013-09-27 04:23:17 +08:00
|
|
|
else
|
|
|
|
training:
|
|
|
|
@echo "Need to reconfigure project, so there are no errors"
|
|
|
|
endif
|
|
|
|
|
2016-06-12 04:40:00 +08:00
|
|
|
.PHONY: install-langs ScrollView.jar install-jars training
|
2013-09-27 04:23:17 +08:00
|
|
|
|
2015-07-24 17:51:44 +08:00
|
|
|
SUBDIRS = ccutil viewer cutil opencl ccstruct dict classify wordrec textord
|
|
|
|
if !NO_CUBE_BUILD
|
|
|
|
SUBDIRS += neural_networks/runtime cube
|
|
|
|
endif
|
|
|
|
SUBDIRS += ccmain api . tessdata doc
|
2012-03-03 07:51:33 +08:00
|
|
|
|
2016-03-15 06:03:44 +08:00
|
|
|
EXTRA_DIST = README.md\
|
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
|
|
|
|
2014-03-29 07:21:49 +08:00
|
|
|
DIST_SUBDIRS = $(SUBDIRS) $(TRAINING_SUBDIR)
|
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.
|
2017-05-06 02:40:12 +08:00
|
|
|
rm -rf $(find $(distdir) -name .svn)
|
|
|
|
rm -rf $(find $(distdir) -name .git)
|
|
|
|
rm -rf $(find $(distdir) -name .deps)
|
|
|
|
rm -rf $(find $(distdir) -name .libs)
|
|
|
|
rm -rf $(find $(distdir) -name *.o)
|
|
|
|
rm -rf $(find $(distdir) -name *.lo)
|
|
|
|
rm -rf $(find $(distdir) -name *.la)
|
|
|
|
rm -rf $(find $(distdir)/training -executable -type f)
|
2014-08-15 05:37:17 +08:00
|
|
|
rm -rf $(distdir)/doc/html/*
|
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
|