-
-
Notifications
You must be signed in to change notification settings - Fork 837
/
Makefile
42 lines (32 loc) · 904 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
41
42
VERSION = `head -n 1 version`
all:
@echo "Read a document at the following URL to build a distributable package."
@echo "https://github.com/pqrs-org/Karabiner-Elements/#how-to-build"
package: clean
./make-package.sh
$(MAKE) clean-launch-services-database
build:
$(MAKE) -C src
clean:
$(MAKE) -C src clean
$(MAKE) -C tests clean
rm -rf pkgroot
rm -f *.dmg
clean-launch-services-database:
$(MAKE) -C tools/clean-launch-services-database
gitclean:
git clean -f -x -d
(cd src/vendor/Karabiner-DriverKit-VirtualHIDDevice && git clean -f -x -d)
notarize:
xcrun notarytool \
submit Karabiner-Elements-$(VERSION).dmg \
--keychain-profile "pqrs.org notarization" \
--wait
$(MAKE) staple
say "notarization completed"
staple:
xcrun stapler staple Karabiner-Elements-$(VERSION).dmg
swift-format:
find src/apps -name '*.swift' -print0 | xargs -0 swift-format -i
swiftlint:
swiftlint