-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (26 loc) · 909 Bytes
/
Makefile
File metadata and controls
33 lines (26 loc) · 909 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
32
33
SHELL := /bin/sh
all: wheel test
sdist:
python3 -m build --sdist
wheel:
@git clean -fxd --exclude NOTES --exclude dist/
python3 -m build
@git clean -fxd --exclude NOTES --exclude dist/
# python3 -m build -C=--build-option=--plat-name -C=--build-option=manylinux_2_17_x86_64
# python3 -m build -C=--build-option=--plat-name -C=--build-option=manylinux_2_17_aarch64
# python3 -m build -C=--build-option=--plat-name -C=--build-option=macosx_11_0_x86_64
clean:
@git clean -fxd --exclude NOTES
test:
@set -eu; \
tmpdir=$$(mktemp -d); \
curdir=$(CURDIR); \
echo Build venv "$$tmpdir"; \
python3 -mvenv "$$tmpdir"; \
echo Install wheel; \
cd "$$tmpdir/"; \
"$$tmpdir/bin/python" -m pip install -qqq --no-index -f "$$curdir/dist" gnetcli_server_bin; \
echo Test calling binary; \
"$$tmpdir/bin/gnetcli-server-bin" -help 2>&1 | grep -q conf-file; \
echo OK
.PHONY: all sdist wheel clean test