eynollah/Makefile

44 lines
923 B
Makefile
Raw Normal View History

2021-02-04 15:21:14 +01:00
EYNOLLAH_MODELS ?= $(PWD)/models_eynollah
export EYNOLLAH_MODELS
# BEGIN-EVAL makefile-parser --make-help Makefile
help:
@echo ""
@echo " Targets"
@echo ""
2020-11-23 13:40:54 +01:00
@echo " models Download and extract models to $(PWD)/models_eynollah"
@echo " install Install with pip"
@echo " install-dev Install editable with pip"
2020-11-27 14:38:29 +01:00
@echo " test Run unit tests"
@echo ""
@echo " Variables"
@echo ""
# END-EVAL
2020-11-23 13:40:54 +01:00
# Download and extract models to $(PWD)/models_eynollah
models: models_eynollah
2022-09-13 13:09:09 +02:00
models_eynollah: models_eynollah.tar.gz
tar xf 2022-04-05.SavedModel.tar.gz
2020-11-23 13:40:54 +01:00
models_eynollah.tar.gz:
wget 'https://ocr-d.kba.cloud/2022-04-05.SavedModel.tar.gz'
2020-11-23 13:40:54 +01:00
# Install with pip
install:
pip install .
# Install editable with pip
install-dev:
pip install -e .
2020-11-23 13:40:54 +01:00
smoke-test:
eynollah -i tests/resources/kant_aufklaerung_1784_0020.tif -o . -m $(PWD)/models_eynollah
2020-11-27 14:38:29 +01:00
# Run unit tests
test:
pytest tests