File tree Expand file tree Collapse file tree 1 file changed +30
-9
lines changed Expand file tree Collapse file tree 1 file changed +30
-9
lines changed Original file line number Diff line number Diff line change
1
+ SHELL = /bin/bash
2
+
1
3
prefix ?= /usr/local
2
- bindir = $(prefix ) /bin
4
+ bindir ?= $(prefix ) /bin
5
+ srcdir = Sources
6
+
7
+ REPODIR = $(shell pwd)
8
+ BUILDDIR = $(REPODIR ) /.build
9
+ SOURCES = $(wildcard $(srcdir ) /** /* .swift)
10
+
11
+ .DEFAULT_GOAL = all
12
+
13
+ .PHONY : all
14
+ all : Xcodecoverageconverter
3
15
4
- build :
5
- swift build -c release --disable-sandbox
16
+ Xcodecoverageconverter : $(SOURCES )
17
+ @swift build \
18
+ -c release \
19
+ --disable-sandbox \
20
+ --build-path " $( BUILDDIR) "
6
21
7
- install : build
8
- install " .build/release/xcc" " $( bindir) "
22
+ .PHONY : install
23
+ install : Xcodecoverageconverter
24
+ @install -d " $( bindir) "
25
+ @install " $( BUILDDIR) /release/xcc" " $( bindir) "
9
26
27
+ .PHONY : uninstall
10
28
uninstall :
11
- rm -rf " $( bindir) /xcc"
29
+ @ rm -rf " $( bindir) /xcc"
12
30
13
- clean :
14
- rm -rf .build
31
+ .PHONY : clean
32
+ distclean :
33
+ @rm -f $(BUILDDIR ) /release
15
34
16
- .PHONY : build install uninstall clean
35
+ .PHONY : clean
36
+ clean : distclean
37
+ @rm -rf $(BUILDDIR )
You can’t perform that action at this time.
0 commit comments