-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (34 loc) · 979 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
TOOL_NAME = cdd-swift
VERSION = 0.1.0
BUILD_DIR = $(PWD)
CURRENT_PATH = $(PWD)
BUILD_PATH = .build/release/$(TOOL_NAME)
PREFIX = /usr/local
INSTALL_PATH = $(PREFIX)/bin/$(TOOL_NAME)
install-release:
swift build --disable-sandbox -c release
cp $(BUILD_PATH) ~/.bin/$(TOOL_NAME)
install:
swift build
cp .build/debug/$(TOOL_NAME) ~/.bin/$(TOOL_NAME)
rm -rf ~/.cdd/swift
cp -R ./Template ~/.cdd/swift
build:
swift build
run: build
.build/debug/cdd-swift sync --dry-run ./Template
check: build
.build/debug/cdd-swift check
alex: build
.build/debug/cdd-swift generate
xcode:
rm -rf cdd-swift.xcodeproj/
swift package generate-xcodeproj
clean:
swift package clean
test-cov:
@swift package generate-xcodeproj
@xcodebuild -scheme cdd-swift -derivedDataPath .build/xcode -enableCodeCoverage YES test
@xcov --scheme cdd-swift --configuration Debug --derived_data_path .build/xcode --skip_slack --markdown_report
@rm -rf .build/xcode
@open xcov_report/index.html