forked from Ankermgmt/ankermake-m5-protocol
-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (22 loc) · 897 Bytes
/
Copy pathMakefile
File metadata and controls
30 lines (22 loc) · 897 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
PYTHON ?= python3
PYINSTALLER ?= $(PYTHON) -m PyInstaller
.PHONY: update diff test check install-tools bundle-linux clean
update:
@transwarp -D specification -I templates/python/ -L templates/lib -O libflagship -u
@transwarp -D specification -I templates/js/ -L templates/lib -O static -u
diff:
@transwarp -D specification -I templates/python/ -L templates/lib -O libflagship -d
@transwarp -D specification -I templates/js/ -L templates/lib -O static -d
test:
@$(PYTHON) -m pytest
check:
@$(PYTHON) -m compileall ankerctl.py cli libflagship web tests
@$(PYTHON) -m pytest
bundle-linux:
@$(PYINSTALLER) --noconfirm --clean packaging/pyinstaller/ankerctl.spec
@tar -C dist -czf dist/ankerctl-linux-amd64.tar.gz ankerctl
install-tools:
git submodule update --init
pip install ./transwarp
clean:
@find -name '*~' -o -name '__pycache__' -print0 | xargs -0 rm -rfv