-
Notifications
You must be signed in to change notification settings - Fork 27
/
Makefile
40 lines (29 loc) · 883 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
37
38
39
40
VERSION = `python3 scripts/get_version.py package_version`
all:
@echo 'Type `make package`'
package: clean
bash make-package.sh
$(MAKE) clean-launch-services-database
build:
$(MAKE) -C src
clean:
git clean -x -f -d *
clean-launch-services-database:
$(MAKE) -C tools/clean-launch-services-database
notarize:
xcrun notarytool \
submit dist/Karabiner-DriverKit-VirtualHIDDevice-$(VERSION).pkg \
--keychain-profile "pqrs.org notarization" \
--wait
$(MAKE) staple
say "notarization completed"
staple:
xcrun stapler staple dist/Karabiner-DriverKit-VirtualHIDDevice-$(VERSION).pkg
check-staple:
@xcrun stapler validate `find dist | sort -V | tail -n 1`
update_vendor:
for f in $$(find * -name 'cget-requirements.txt'); do make -C $$(dirname $$f) update_vendor; done
swift-format:
find * -name '*.swift' -print0 | xargs -0 swift-format -i
swiftlint:
swiftlint