You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
979 B
Makefile
43 lines
979 B
Makefile
# '$(PIP_INSTALL)'
|
|
PIP_INSTALL = pip3 install
|
|
|
|
# '$(GIT_CLONE)'
|
|
GIT_CLONE = git clone
|
|
|
|
# BEGIN-EVAL makefile-parser --make-help Makefile
|
|
|
|
help:
|
|
@echo ""
|
|
@echo " Targets"
|
|
@echo ""
|
|
@echo " install Install ocrd_calamari"
|
|
@echo " calamari Clone calamari repo"
|
|
@echo " calamari_models Clone calamari_models repo"
|
|
@echo " calamari/build pip install calamari"
|
|
@echo ""
|
|
@echo " Variables"
|
|
@echo ""
|
|
@echo " PIP_INSTALL '$(PIP_INSTALL)'"
|
|
@echo " GIT_CLONE '$(GIT_CLONE)'"
|
|
|
|
# END-EVAL
|
|
|
|
# Install ocrd_calamari
|
|
install:
|
|
$(PIP_INSTALL) .
|
|
|
|
# Clone calamari repo
|
|
calamari:
|
|
$(GIT_CLONE) https://github.com/chwick/calamari
|
|
|
|
# Clone calamari_models repo
|
|
calamari_models:
|
|
$(GIT_CLONE) -n https://github.com/chwick/calamari_models
|
|
# Checkout latest version that works with calamari-ocr==0.3.5:
|
|
cd calamari_models && git checkout f76b1d3ec
|
|
|
|
|
|
# pip install calamari
|
|
calamari/build: calamari calamari_models
|
|
cd calamari && $(PIP_INSTALL) .
|