-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (26 loc) · 1009 Bytes
/
Makefile
File metadata and controls
33 lines (26 loc) · 1009 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
26
27
28
29
30
31
32
33
# chess openings — dev makefile
#
# wraps the usual xcodebuild invocations so they're short to type and
# easy to read. override PROJECT, SCHEME, or DESTINATION on the command
# line if you need a different target (e.g. a different simulator).
PROJECT ?= Chess Openings.xcodeproj
SCHEME ?= Chess Openings
DESTINATION ?= platform=iOS Simulator,name=iPhone 16 Pro
XCB = taskpolicy -d throttle nice -n20 xcodebuild -project "$(PROJECT)" -scheme "$(SCHEME)" -destination "$(DESTINATION)"
.PHONY: build test test-all clean
# build only (no tests)
build:
$(XCB) build
# run every test in the scheme
test-all:
$(XCB) test
# run a subset of tests. usage:
# make test T="Chess OpeningsTests/ChessCoreTests"
# make test T="Chess OpeningsTests/ChessCoreTests/test_side_opposite"
# you can pass multiple by repeating the flag manually with ONLY, e.g.
# make test ONLY='-only-testing:"A" -only-testing:"B"'
ONLY ?= $(if $(T),-only-testing:"$(T)",)
test:
$(XCB) test $(ONLY)
clean:
$(XCB) clean