-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile.2204
More file actions
31 lines (26 loc) · 824 Bytes
/
Makefile.2204
File metadata and controls
31 lines (26 loc) · 824 Bytes
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
VERSION=$(shell grep -oP "^__version__ = '\K([^'~]+)(?=')" imgstore/__init__.py | sed -r 's/-/~/g')
PKG_VERSION=0jrs1
FPM?=fpm
PYTHON?=python3
deb: python3-imgstore_${VERSION}-${PKG_VERSION}_all.deb
python3-imgstore_${VERSION}-${PKG_VERSION}_all.deb: setup.py $(MAKEFILE_LIST)
$(FPM) --verbose --force \
--maintainer "John Stowers <john.stowers@gmail.com>" \
-s python -t deb \
-n python3-imgstore \
--no-python-dependencies \
--python-internal-pip \
--python-bin=${PYTHON} \
--python-package-name-prefix=python3 \
--version ${VERSION}-${PKG_VERSION} \
-d "python3-h5py" \
-d "python3-numpy" \
-d "python3-pandas" \
-d "python3-yaml" \
-d "python3-dateutil" \
-d "python3-tzlocal" \
-d "python3-opencv" \
$<
clean:
rm -f python-imgstore_${VERSION}-${PKG_VERSION}_all.deb
.PHONY: clean