-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMakefile
37 lines (27 loc) · 972 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
PLATFORM := $(shell uname -s)
CONFIGURATION = debug
BUILD_PATH = `swift build --configuration $(CONFIGURATION) --show-bin-path`
ROOT_DIR = $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
debug: build
release: CONFIGURATION = release
release: clean build
build:
swift build --configuration $(CONFIGURATION)
test:
swift test
swiftc -suppress-warnings $(shell find $(ROOT_DIR)/Tests/Resources/CompilationSupport $(ROOT_DIR)/Tests/Resources/ExpectedSwiftCode -name "*.swift")
test-docker-linux:
docker build -t syrup-linux .
docker run syrup-linux make test
record: CONFIGURATION = debug
record: build
record:
rm -rf $(ROOT_DIR)/Tests/Resources/ExpectedSwiftCode/*
rm -rf $(ROOT_DIR)/Tests/Resources/ExpectedKotlinCode/*
rm -rf $(ROOT_DIR)/Tests/Resources/ExpectedTypeScriptCode/*
RECORD=true swift test
xcode:
swift package generate-xcodeproj
clean:
swift package clean
.PHONY: debug release build test test-docker-linux record xcode clean