-
-
Notifications
You must be signed in to change notification settings - Fork 48
/
Makefile
27 lines (20 loc) · 582 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
.PHONY: build test package clean
build:
poetry install
# if macOS, build swift
if [ "$(shell uname)" = "Darwin" ]; then \
make build-swift; \
fi
build-swift: aw_watcher_window/aw-watcher-window-macos
aw_watcher_window/aw-watcher-window-macos: aw_watcher_window/macos.swift
swiftc $^ -o $@
test:
aw-watcher-window --help
typecheck:
poetry run mypy aw_watcher_window/ --ignore-missing-imports
package:
pyinstaller aw-watcher-window.spec --clean --noconfirm
clean:
rm -rf build dist
rm -rf aw_watcher_window/__pycache__
rm aw_watcher_window/aw-watcher-window-macos