forked from dduan/Just
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
22 lines (17 loc) · 804 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
all : clean test
docs : playground html
test :
@set -o pipefail \
&& xcodebuild test -workspace Just.xcworkspace -scheme Just-OSX -destination 'platform=OS X' | xcpretty \
&& xcodebuild test -workspace Just.xcworkspace -scheme Just-iOS -destination 'OS=9.1,name=iPhone 6 Plus' | xcpretty \
&& xcodebuild test -workspace Just.xcworkspace -scheme Just-tvOS -destination 'OS=10.0,name=Apple TV 1080p' | xcpretty \
playground :
@mkdir -p Docs/QuickStart.playground/Sources
@cp 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/Contents.html Docs/html/QuickStart.html
clean :
@xcodebuild clean
@rm -rf build