forked from segmentio/analytics-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (31 loc) · 920 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
SDK ?= "iphonesimulator"
DESTINATION ?= "platform=iOS Simulator,name=iPhone 6"
PROJECT := Analytics
XC_ARGS := -scheme $(PROJECT)-Example -workspace Example/$(PROJECT).xcworkspace -sdk $(SDK) -destination $(DESTINATION) ONLY_ACTIVE_ARCH=NO
bootstrap:
.buildscript/bootstrap.sh
install: Example/Podfile Analytics.podspec
pod install --project-directory=Example
lint:
pod lib lint
carthage:
carthage build --no-skip-current
archive:
carthage archive Analytics
clean:
xcodebuild $(XC_ARGS) clean
build:
xcodebuild $(XC_ARGS)
test:
xcodebuild test $(XC_ARGS)
clean-pretty:
set -o pipefail && xcodebuild $(XC_ARGS) clean | xcpretty
build-pretty:
set -o pipefail && xcodebuild $(XC_ARGS) | xcpretty
test-pretty:
set -o pipefail && xcodebuild test $(XC_ARGS) | xcpretty
xcbuild:
xctool $(XC_ARGS)
xctest:
xctool test $(XC_ARGS)
.PHONY: bootstrap lint carthage archive test xctest build xcbuild clean