-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Makefile
36 lines (29 loc) · 1.15 KB
/
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
FORMAT_ARGS=--maxwidth 120 --swiftversion 5 --exclude Moblin/Integrations/Tesla/Protobuf
LINT_ARGS=--strict --quiet
all:
$(MAKE) style
$(MAKE) lint
style:
swiftformat $(FORMAT_ARGS) Common
swiftformat $(FORMAT_ARGS) Moblin
swiftformat $(FORMAT_ARGS) "Moblin Watch"
swiftformat $(FORMAT_ARGS) "Moblin Widget"
swiftformat $(FORMAT_ARGS) "Moblin Screen Recording"
style-check:
swiftformat $(FORMAT_ARGS) --lint Common
swiftformat $(FORMAT_ARGS) --lint Moblin
swiftformat $(FORMAT_ARGS) --lint "Moblin Watch"
swiftformat $(FORMAT_ARGS) --lint "Moblin Widget"
swiftformat $(FORMAT_ARGS) --lint "Moblin Screen Recording"
lint:
swiftlint lint $(LINT_ARGS) Common
swiftlint lint $(LINT_ARGS) Moblin
swiftlint lint $(LINT_ARGS) "Moblin Watch"
swiftlint lint $(LINT_ARGS) "Moblin Widget"
swiftlint lint $(LINT_ARGS) "Moblin Screen Recording"
periphery:
periphery scan --report-exclude Moblin/Integrations/Tesla/Protobuf/**
machine-translate:
python3 utils/translate.py Common/Localizable.xcstrings
pack-exported-localizations:
cd Moblin\ Localizations && for f in * ; do python3 ../utils/xliff.py $$f/Localized\ Contents/*.xliff && zip -r $$f.zip $$f ; done