Skip to content

Commit

Permalink
remove install-langs - fix #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)

2 comments on commit a6871a8

@mamash
Copy link

@mamash mamash commented on a6871a8 Feb 21, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this meant to be included in 3.05.00 too, or just master/4.x?

@amitdo
Copy link
Collaborator

@amitdo amitdo commented on a6871a8 Feb 21, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is applied on both of them.

Please sign in to comment.