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
|
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
|
|
|
|
|
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
|
|
|
|
2014-08-15 05:37:17 +08:00
|
|
|
EXTRA_DIST = 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
|
|
|
|
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.
|
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`
|
2014-08-15 05:37:17 +08:00
|
|
|
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`
|
|
|
|
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
|