# BEGIN-EVAL makefile-parser --make-help Makefile # should really be core-cuda-tf2, but not as long as we must restrict TF2 minor version DOCKER_BASE_IMAGE = docker.io/ocrd/core-cuda:v2.69.0 DOCKER_TAG = ocrd/sbb_binarization .PHONY: help install help: @echo "" @echo " Targets" @echo "" @echo " install Install with pip" @echo " models Downloads the pre-trained models from qurator-data.de" @echo " test Run tests" @echo " clean Remove copies/results in test/assets" @echo "" @echo " docker Build a Docker image $(DOCKER_TAG) from $(DOCKER_BASE_IMAGE)" @echo "" @echo " Variables" @echo "" @echo " PYTHON" @echo " DOCKER_TAG Docker image tag of result for the docker target" # END-EVAL # Install with pip install: pip install -U setuptools pip pip install . # Downloads the pre-trained models from qurator-data.de .PHONY: models models: ocrd resmgr download ocrd-sbb-binarize "*" repo/assets/data: git submodule update --init # Setup test data test/assets: repo/assets/data @mkdir -p $@ cp -r -t $@ $