-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
53 lines (41 loc) · 1.4 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
.PHONY: all help lint lint-fix clean js js-debug js-clean
# Default target - must be first
all: help
include build.mk publish.mk run.mk
help:
@echo "Usage: make <target>"
@echo ""
@echo "Targets:"
@echo " help Display this help message"
@echo " build Build the project"
@echo " test Build and run all unit tests"
@echo " run Launch the 'Designed for iPad' variant as a macOS app"
@echo " ipa Build the app store IPA artifact"
@echo " js Build the JavaScript polyfill artifacts"
@echo " js-debug Build the JavaScript polyfill artifacts without minification"
@echo " js-clean Clean the JavaScript build"
@echo " lint Lint the project"
@echo " lint-fix Fix linting issues"
@echo " clean Clean the project"
@echo ""
@echo "Test targets:"
@echo $(TEST_MODULES) | tr ' ' '\n' | sed -e 's/^/ /'
js:
$(MAKE) -C lib/Javascript build
js-debug:
$(MAKE) -C lib/Javascript debug
js-clean:
$(MAKE) -C lib/Javascript clean
lint:
swiftlint lint --strict
lint-fix:
swiftlint lint --fix
## TODO: deprecate swiftlint in favor of swift-format
lint-official:
swift format lint --strict -r .
lint-fix-official:
swift format -i -r .
log-watch:
log stream --source --level debug --style compact --predicate 'process=="topaz" AND sender=="topaz.debug.dylib" AND subsystem!="WebView"'
clean:
-rm -rf .build build $(DERIVED_DATA_ROOT) $(ARTIFACTS_ROOT)