-
Notifications
You must be signed in to change notification settings - Fork 134
/
Makefile
44 lines (35 loc) · 914 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
all : clean test-macOS
docs : playground html
test: test-iOS test-macOS test-tvOS test-swiftpm
test-iOS:
set -o pipefail && \
xcodebuild \
-project Just.xcodeproj \
-scheme Just \
-destination "name=iPhone X" \
test
test-macOS:
set -o pipefail && \
xcodebuild \
-project Just.xcodeproj \
-scheme Just \
test
test-tvOS:
set -o pipefail && \
xcodebuild \
-project Just.xcodeproj \
-scheme Just \
-destination "name=Apple TV" \
test
test-swiftpm:
swift test
playground:
@mkdir -p Docs/QuickStart.playground/Sources
@cp Sources/Just/Just.swift Docs/QuickStart.playground/Sources/Just.swift
cd ./Docs && zip -r -X QuickStart.zip QuickStart.playground/*
html :
@docco -L Docs/docco.json -l linear -o Docs/html Docs/QuickStart.playground/Contents.swift
mv Docs/html/Docs/QuickStart.playground/Contents.html Docs/html/QuickStart.html
clean :
@xcodebuild clean
@rm -rf build