forked from ucsb-cs148-s21/t7-local-network-file-transfer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (27 loc) · 754 Bytes
/
Makefile
File metadata and controls
35 lines (27 loc) · 754 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
# the name of the application
name := loft
# folder where the built executable will be
dist := dist
ifeq ($(shell uname), Darwin)
target := $(dist)/$(name).app
else
target := $(dist)/$(name)
endif
.PHONY: build
build: $(target)
$(dist)/$(name):
python3 -OO -m build
$(dist)/$(name).app:
python3 setup.py bdist_mac --custom-info-plist Info-highres.plist
.PHONY: test
test:
pytest
.PHONY: clean
clean:
# https://stackoverflow.com/a/41386937
# clean up __pycache__, *.pyc, and *.pyo
python3 -Bc "import pathlib; [p.unlink() for p in pathlib.Path('.').rglob('*.py[co]')]"
python3 -Bc "import pathlib; [p.rmdir() for p in pathlib.Path('.').rglob('__pycache__')]"
# remove pyinstaller build artifacts
/bin/rm -f *.spec
/bin/rm -rf build dist