-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
36 lines (28 loc) · 886 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
none: help
help:
@echo "Elements: A modern music library."
@echo
@echo "demo_deploy Run Elements from /tmp on Ubuntu."
@echo "demo_clean Clean up the demo."
@echo "run Run Elements directly from this repository."
@echo "lint Run pylint3 on the Elements package."
@echo "test Run pytests for Elements."
clean:
@rm -rf elements/__pycache__
@rm -f elements/*.pyc
demo_deploy: demo_clean
@mkdir -p /tmp/bin
@cp -rf elements /tmp/bin/elements
@cp -f deploy/elements_tmp.desktop ~/.local/share/applications/
@gtk-launch elements_tmp
@rm -f ~/.local/share/applications/elements_tmp.desktop
demo_clean:
@rm -rf /tmp/bin/elements
@rm -f ~/.local/share/applications/elements_tmp.desktop
lint:
pylint3 --rcfile=pylintrc elements
run:
python3 -m elements
test:
python3 -m pytest elements
.PHONY: demo_clean demo_deploy lint run test