-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 573 Bytes
/
Makefile
File metadata and controls
36 lines (27 loc) · 573 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
34
35
36
MAKEDIR = pyinstaller_builds
ifeq ($(OS), Windows_NT)
OS_NAME = ${OS}
else
OS_NAME = ${shell uname -s}
endif
OS_NAME_LOWER = $(shell python -c "print('$(OS_NAME)'.lower())")
.PHONY: build
build:
pip install --editable .
.PHONY: install
install:
pip install -r requirements.txt
.PHONY: binary
binary:
pyinstaller pyinstaller.spec \
--distpath ${MAKEDIR}/dist_${OS_NAME_LOWER} \
--workpath ${MAKEDIR}/build_${OS_NAME_LOWER}
.PHONY: sdist
sdist:
python setup.py sdist
.PHONY: upload
upload: sdist
twine upload dist/*
.PHONY: clean
clean:
rm -R ${MAKEDIR}