-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (34 loc) · 844 Bytes
/
Copy pathMakefile
File metadata and controls
45 lines (34 loc) · 844 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
34
35
36
37
38
39
40
41
42
43
44
45
VERSION := 0.0.5
.PHONY: install
install: release
@sudo cp .build/release/bazelize /usr/local/bin
.PHONY: syncVersion
syncVersion:
@sed -i '' 's|\(version = "\)\(.*\)\("\)|\1$(VERSION)\3|' Sources/BazelizeKit/Bazel/Version.swift
.PHONY: release
release: syncVersion
swift build -c release
.PHONY: coherent
coherent:
coherent-swift report
.PHONY: lint
lint:
swiftformat --lint . --verbose
.PHONY: format
format:
swiftformat .
.PHONY: build
build: format
swift build
.PHONY: test
test:
swift test -v 2>&1 | xcpretty
.PHONY: bazelize
bazelize: install
cd fixture/iOS && make bazelize
.PHONY: update-repo-enums
update-repo-enums:
swift package plugin --allow-network-connections all --allow-writing-to-package-directory repo-enum
.PHONY: replace
replace: update-repo-enums
cp Generated/*.swift Sources/BazelizeKit/BazelDep/