-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (17 loc) · 672 Bytes
/
Makefile
File metadata and controls
26 lines (17 loc) · 672 Bytes
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
PLATFORM ?= "iOS Simulator,OS=12.1,name=iPhone 7 Plus"
PROJECT ?= PanoController.xcodeproj
SCHEME ?= PanoController
# https://github.com/xcpretty/xcpretty - override with "cat" to see actual output
XCPRETTY := xcpretty
all: build test
build: $(PROJECT)
set -o pipefail && \
xcodebuild build -project $(PROJECT) -scheme $(SCHEME) -destination platform=$(PLATFORM) | $(XCPRETTY)
test: $(PROJECT)
set -o pipefail && \
xcodebuild test -project $(PROJECT) -scheme $(SCHEME) -destination platform=$(PLATFORM) | $(XCPRETTY)
clean:
set -o pipefail && \
xcodebuild clean -project $(PROJECT) -scheme $(SCHEME) | $(XCPRETTY)
rm -rf build
.PHONY: all clean build test