forked from OCR-D/ocrd_typegroups_classifier
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
46 lines (36 loc) · 920 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# pypi name of the package
PKG_NAME = ocrd_typegroups_classifier
# BEGIN-EVAL makefile-parser --make-help Makefile
help:
@echo ""
@echo " Targets"
@echo ""
@echo " deps pip install -r requirements.txt"
@echo " install pip install -e ."
@echo " uninstall pip uninstall $(PKG_NAME)"
@echo " assets Fetch test assets"
@echo " test Run tests"
@echo ""
@echo " Variables"
@echo ""
@echo " PKG_NAME pypi name of the package"
# END-EVAL
# pip install -r requirements.txt
deps:
pip install -r requirements.txt
# pip install -e .
install:
pip install -e .
# pip uninstall $(PKG_NAME)
uninstall:
pip uninstall $(PKG_NAME)
# Fetch test assets
assets: test/assets
repo/assets:
mkdir -p repo
cd repo; git clone --depth 1 https://github.com/OCR-D/assets
# Run tests
test: repo/assets
rm -rf tests/assets
cp -r repo/assets/data tests/assets
cd tests; bash test.sh