-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (43 loc) · 1.22 KB
/
Makefile
File metadata and controls
53 lines (43 loc) · 1.22 KB
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
46
47
48
49
50
51
52
53
# Boot Makefile
# See https://www.gnu.org/software/make/manual/make.html for more about make.
# PATH
PATH_BIN = $(CURDIR)/tests/bin/index.bin
PATH_SRC_RPC = $(CURDIR)/tests/rpc/main.py
PATH_SRC_UMQT = $(CURDIR)/tests/transport/umqt.py
# PYTHON
PYTHON = venv/bin/python
PYTHON_FLAGS = -m
PYPI = venv/bin/pip
# NUITKA
NUITKA = venv/bin/nuitka
NUITKA_FLAGS = --standalone --onefile
install:
clear && find . -type d -name '__pycache__' -exec rm -r {} +
rm -rf venv
python ${PYTHON_FLAGS} venv venv
${PYPI} install -r requirements.txt
build:
clear && rm -rf target/* && rm -rf arnelify_server/*.so
maturin develop
maturin build --release
test_rpc:
clear && mkdir -p tests/bin && rm -rf tests/bin/*
${PYTHON} ${PYTHON_FLAGS} tests.rpc.main
test_umqt:
clear && mkdir -p tests/bin && rm -rf tests/bin/*
${PYTHON} ${PYTHON_FLAGS} tests.transport.umqt
nuitka_rpc:
clear && mkdir -p tests/bin && rm -rf tests/bin/*
${NUITKA} ${NUITKA_FLAGS} --output-dir=tests/bin ${PATH_SRC_RPC} && clear
${PATH_BIN}
nuitka_umqt:
clear && mkdir -p tests/bin && rm -rf tests/bin/*
${NUITKA} ${NUITKA_FLAGS} --output-dir=tests/bin ${PATH_SRC_UMQT} && clear
${PATH_BIN}
.PHONY: \
install \
build \
test_rpc \
test_umqt \
nuitka_rpc \
nuitka_umqt