-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathMakefile
41 lines (32 loc) · 847 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
SHELL = /bin/bash
PYTHON ?= python
PIP ?= pip
TAG ?= ocrd/segment
# BEGIN-EVAL makefile-parser --make-help Makefile
help:
@echo ""
@echo " Targets"
@echo ""
@echo " deps (install required Python packages)"
@echo " install (install this Python package)"
@echo " docker (build Docker image)"
@echo ""
# END-EVAL
# (install required Python packages)
deps:
$(PIP) install -r requirements.txt
#deps-test:
# $(PIP) install -r requirements_test.txt
# Dependencies for deployment in an ubuntu/debian linux
# deps-ubuntu:
# sudo apt-get install -y \
# ...
# (install this Python package)
install: deps
$(PIP) install .
docker:
docker build \
-t $(TAG) \
--build-arg VCS_REF=$(git rev-parse --short HEAD) \
--build-arg BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") .
.PHONY: help deps install docker # deps-test test