-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
74 lines (56 loc) · 1.31 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
VERSION = 0.0.4
include CodeQL.mk
.PHONY: githubRelease
githubRelease:
sed -i '' 's|\(version: "\)\(.*\)\("\)|\1$(VERSION)\3|' Sources/LeakDetect/Command.swift
git add Sources/LeakDetect/Command.swift
git add Makefile
git commit -m "Update to $(VERSION)"
git tag $(VERSION)
git push origin $(VERSION)
.PHONY: build
build:
swift build
# --parallel
.PHONY: test
test: build
# @swift test -v 2>&1 | xcpretty
@swift test -v 2>&1 | xcbeautify
.PHONY: release
release:
@swift build -c release --arch x86_64
.PHONY: releaseArm
releaseArm:
@swift build -c release --arch arm64
.PHONY: releaseAll
releaseAll:
@swift build -c release --arch arm64 --arch x86_64
.PHONY: install
install: release
@cp .build/release/leakDetect /usr/local/bin
.PHONY: clear
clear:
@rm /usr/local/bin/leakDetect
.PHONY: clearAll
clearAll: clear
@rm -Rf .build
.PHONY: libs
libs: release
otool -L .build/release/leakDetect
.PHONY: libDetail
libDetail: release
otool -l .build/release/leakDetect
.PHONY: graph
graph:
swift package show-dependencies --format dot | dot -Tsvg -o graph.svg
.PHONY: single
single:
leakDetect \
--sdk macosx \
--file fixture/temp.swift
.PHONY: proj
proj:
# git clone https://github.com/antranapp/LeakDetector
leakDetect \
--module LeakDetectorDemo \
--file LeakDetector/LeakDetectorDemo.xcworkspace