-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
48 lines (35 loc) · 901 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
43
44
45
46
47
48
PLATFORM_IOS = iOS Simulator,name=iPhone 11 Pro Max
PLATFORM_MACOS = macOS
PLATFORM_MAC_CATALYST = macOS,variant=Mac Catalyst
PLATFORM_TVOS = tvOS Simulator,name=Apple TV
PLATFORM_WATCHOS = watchOS Simulator,name=Apple Watch Series 7 (45mm)
ROOT_DIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST))))
.PHONY: submodules test dev clean testprod testdebug purge init format formatstaged
rmsubmod:
rm -rf "$(ROOT_DIR)Sources/secp256k1/libsecp256k1"
clean:
rm -rf .build
purge:
make rmsubmod
make clean
submodules: ## Update all sumodules .
git submodule update --init
init:
make purge
make submodules
dev:
./scripts/bootstrap
make init
test:
make clean
make testdebug
make clean
make testprod
testdebug:
swift test
testprod:
swift test -c release -Xswiftc -enable-testing
formatstaged:
./scripts/swiftformat-staged
format:
swiftformat --config .swiftformat "$(ROOT_DIR)"