Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (37 loc) · 1.32 KB
/
Copy pathMakefile
File metadata and controls
44 lines (37 loc) · 1.32 KB
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
43
44
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"
swiftformat $(FORMAT_ARGS) "MoblinTests"
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"
swiftformat $(FORMAT_ARGS) --lint "MoblinTests"
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"
swiftlint lint $(LINT_ARGS) "MoblinTests"
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 -qr $$f.zip $$f && \
rm -rf $$f ; \
done