forked from gonzalezreal/swift-markdown-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (41 loc) · 1.21 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
DESTINATION_MAC = platform=macOS
DESTINATION_CATALYST = platform=macOS,variant=Mac Catalyst
DESTINATION_IOS = platform=iOS Simulator,name=iPhone 8
DESTINATION_TVOS = platform=tvOS Simulator,name=Apple TV
DESTINATION_WATCHOS = generic/platform=watchOS
default: test watch_os demo_mac demo_ios
test:
xcodebuild test \
-workspace MarkdownUI.xcworkspace \
-scheme MarkdownUI \
-destination '$(DESTINATION_MAC)'
xcodebuild test \
-workspace MarkdownUI.xcworkspace \
-scheme MarkdownUI \
-destination '$(DESTINATION_CATALYST)'
xcodebuild test \
-workspace MarkdownUI.xcworkspace \
-scheme MarkdownUI \
-destination '$(DESTINATION_IOS)'
xcodebuild test \
-workspace MarkdownUI.xcworkspace \
-scheme MarkdownUI \
-destination '$(DESTINATION_TVOS)'
watch_os:
xcodebuild \
-workspace MarkdownUI.xcworkspace \
-scheme MarkdownUI-watchOS \
-destination '$(DESTINATION_WATCHOS)'
demo_mac:
xcodebuild \
-workspace MarkdownUI.xcworkspace \
-scheme 'MarkdownUIDemo (macOS)' \
-destination '$(DESTINATION_MAC)'
demo_ios:
xcodebuild \
-workspace MarkdownUI.xcworkspace \
-scheme 'MarkdownUIDemo (iOS)' \
-destination '$(DESTINATION_IOS)'
format:
swiftformat .
.PHONY: format