@@ -16,13 +16,13 @@ help:
1616 @echo " deps-ubuntu Dependencies for deployment in an ubuntu/debian linux"
1717 @echo " deps-pip Install python deps via pip"
1818 @echo " assets Clone the ocrd-assets repo for sample files"
19+ @echo " assets-server Start asset server at http://localhost:5001"
1920 @echo " assets-clean Remove symlinks in test/assets"
2021 @echo " install (Re)install the tool"
2122 @echo " test-deps-pip Install test python deps via pip"
2223 @echo " test Run all unit tests"
2324 @echo " docs Build documentation"
2425 @echo " docs-clean Clean docs"
25- @echo " asset-server Start asset server at http://localhost:5001"
2626 @echo " docker Build docker image"
2727 @echo " "
2828 @echo " Variables"
@@ -46,29 +46,36 @@ deps-ubuntu:
4646deps-pip :
4747 $(PIP ) install -r requirements.txt
4848
49+ # (Re)install the tool
50+ install :
51+ $(PIP ) install .
52+
53+ #
54+ # Assets
55+ #
56+
4957# Clone the ocrd-assets repo for sample files
50- assets :
51- if [ ! -e ocrd-assets ]; then git clone https://github.com/OCR-D/ocrd-assets; fi
58+ assets : ocrd-assets test/assets
59+
60+ ocrd-assets :
61+ git clone https://github.com/OCR-D/ocrd-assets
62+
63+ test/assets :
5264 mkdir -p test/assets
5365 cp -r -t test/assets ocrd-assets/data/*
54- # cd test/assets && ln -fs ../../ocrd-assets/data/* .
66+
67+ # Start asset server at http://localhost:5001
68+ assets-server :
69+ cd ocrd-assets && make start
5570
5671# Remove symlinks in test/assets
5772assets-clean :
5873 rm -rf test/assets
5974
60- # (Re)install the tool
61- install :
62- $(PIP ) install .
63-
6475#
6576# Tests
6677#
6778
68- test/assets : spec
69- mkdir -p test/assets
70- cp -r spec/io/example test/assets/herold
71-
7279# Install test python deps via pip
7380test-deps-pip :
7481 $(PIP ) install -r requirements_test.txt
@@ -110,10 +117,6 @@ test-profile:
110117 $(PYTHON ) -m cProfile -o profile $$(which pytest )
111118 $(PYTHON ) analyze_profile.py
112119
113- # Start asset server at http://localhost:5001
114- asset-server :
115- cd ocrd-assets && make start
116-
117120#
118121# Docker
119122#
0 commit comments