Skip to content

Commit

Permalink
remove install-langs - fix tesseract-ocr#376
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop committed Sep 1, 2016
1 parent 61032d9 commit a6871a8
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions tessdata/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -44,27 +44,6 @@ langdata = bul.traineddata mlt.traineddata chr.traineddata \
ita.cube.nn fra.cube.size eng.cube.bigrams ara.cube.lm \
rus.cube.nn spa.cube.nn hin.cube.bigrams

.PHONY: install-langs
install-langs:
@if [ ! -d $(DESTDIR)$(datadir) ]; then mkdir -p $(DESTDIR)$(datadir); fi;
@if test "${LANGS}" != ""; then \
for lang_code in ${LANGS}; do \
echo "installing data for $$lang_code"; \
$(INSTALL) -m 644 $(srcdir)/$$lang_code.* $(DESTDIR)$(datadir); \
done; \
else \
for l in ./*.traineddata; do \
filename=`basename $$l`; \
lang_code=$${filename%.*}; \
if test "$$lang_code" == "*"; then \
echo "No lang present."; \
break; \
fi; \
echo "installing data for $$lang_code"; \
$(INSTALL) -m 644 $(srcdir)/$$lang_code.* $(DESTDIR)$(datadir); \
done; \
fi;

uninstall-local:
cd $(DESTDIR)$(datadir); \
rm -f $(langdata)

0 comments on commit a6871a8

Please sign in to comment.