mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 12:49:35 +08:00
Simplify Makefile and add missing dependency for target training-install (#1403)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
8209ce3663
commit
8c258750de
15
Makefile.am
15
Makefile.am
@ -3,15 +3,14 @@ ACLOCAL_AMFLAGS = -I m4
|
||||
|
||||
if ENABLE_TRAINING
|
||||
TRAINING_SUBDIR = training
|
||||
training:
|
||||
$(MAKE)
|
||||
@cd "$(top_builddir)/training" && $(MAKE)
|
||||
training-install:
|
||||
@cd "$(top_builddir)/training" && $(MAKE) install
|
||||
training: all
|
||||
@$(MAKE) -C training
|
||||
training-install: training
|
||||
@$(MAKE) -C training install
|
||||
training-uninstall:
|
||||
@cd "$(top_builddir)/training" && $(MAKE) uninstall
|
||||
@$(MAKE) -C training uninstall
|
||||
clean-local:
|
||||
@cd "$(top_builddir)/training" && $(MAKE) clean
|
||||
@$(MAKE) -C training clean
|
||||
else
|
||||
training:
|
||||
@echo "Need to reconfigure project, so there are no errors"
|
||||
@ -26,7 +25,7 @@ EXTRA_DIST = README.md\
|
||||
aclocal.m4 config configure.ac autogen.sh contrib \
|
||||
tesseract.pc.in $(TRAINING_SUBDIR) java doc testing
|
||||
|
||||
DIST_SUBDIRS = $(SUBDIRS) $(TRAINING_SUBDIR)
|
||||
DIST_SUBDIRS = $(SUBDIRS) $(TRAINING_SUBDIR)
|
||||
|
||||
uninstall-hook:
|
||||
rm -rf $(DESTDIR)$(includedir)
|
||||
|
Loading…
Reference in New Issue
Block a user