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.
ocrd_calamari/Makefile

40 lines
849 B
Makefile

7 years ago
GIT_CLONE = git clone --depth 1
5 years ago
# Docker tag
DOCKER_TAG = ocrd/calamari
# BEGIN-EVAL makefile-parser --make-help Makefile
help:
@echo ""
@echo " Targets"
@echo ""
@echo " calamari git clone calamari"
@echo " calamari_models git clone calamari_models"
@echo " calamari/build Install calamari"
@echo " docker Build docker image"
@echo ""
@echo " Variables"
@echo ""
@echo " DOCKER_TAG Docker tag"
# END-EVAL
# git clone calamari
7 years ago
calamari:
$(GIT_CLONE) https://github.com/chwick/calamari
5 years ago
# git clone calamari_models
7 years ago
calamari_models:
$(GIT_CLONE) https://github.com/chwick/calamari_models
5 years ago
# Install calamari
7 years ago
calamari/build: calamari calamari_models
cd calamari &&\
pip install -r requirements.txt ;\
python setup.py install
5 years ago
# Build docker image
docker:
docker build -t '$(DOCKER_TAG)' .