forked from nickzuber/chs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
63 lines (50 loc) · 1.54 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
pprintf = @printf "\n\033[36m=-=-\033[39m \033[1m%s\033[0m \033[36m-=-=-=-=-=-=-=-=-=-=-=\033[39m 🚀\n" "$(1)"
p_update = @printf "\033[33m ↻\033[39m \033[89m%s\033[39m\n" "$(1)"
p_add = @printf "\033[32m ↗\033[39m \033[89m%s\033[39m\n" "$(1)"
p_remove = @printf "\033[31m ↘\033[39m \033[89m%s\033[39m\n" "$(1)"
p_dot = @printf "\033[32m ∗\033[39m \033[89m%s\033[39m\n" "$(1)"
p_dot_red = @printf "\033[31m ∗\033[39m \033[89m%s\033[39m\n" "$(1)"
.PHONY: run test build rebuild release build-exe clean-exe clean
run:
$(call pprintf,Running app)
@python3 chs.py
test:
$(call pprintf,Running tests for project)
python3 -m "nose"
test-nocapture:
$(call pprintf,Running tests for project)
python3 -m "nose" --nocapture
build:
$(call pprintf,Building project)
python3 setup.py sdist
rebuild:
make clean
make build
release-major:
$(call pprintf,Releasing project w/ major revision)
python3 upgrade.py major
make rebuild
make release
release-minor:
$(call pprintf,Releasing project w/ minor revision)
python3 upgrade.py minor
make rebuild
make release
release-patch:
$(call pprintf,Releasing project w/ patch revision)
python3 upgrade.py patch
make rebuild
make release
release:
twine upload dist/* --verbose
build-exe:
$(call pprintf,Building project)
pyinstaller ./chs.py --name=chs --onefile --add-binary=/Users/nick/projects/chs/chs/engine/stockfish-10-64:/Users/nick/projects/chs/dist
clean-exe:
$(call pprintf,Cleaning project)
rm ./chs.spec
rm -rf ./build
rm -rf ./dist
clean:
$(call pprintf,Cleaning project)
rm -rf ./dist