File tree 2 files changed +17
-18
lines changed
2 files changed +17
-18
lines changed Original file line number Diff line number Diff line change 8
8
pull_request :
9
9
10
10
jobs :
11
- project :
12
- name : Project Checks
13
- runs-on : ubuntu-20.04
14
- timeout-minutes : 20
15
- steps :
16
- - uses : actions/setup-go@v2
17
- with :
18
- go-version : 1.16.x
19
- - uses : actions/checkout@v2
20
- with :
21
- fetch-depth : 25
22
- - name : " Check DCO sign"
23
- run : |
24
- go get -u github.com/vbatts/git-validation
25
- ./hack/validate-dco.sh
26
-
27
11
golangci-lint :
28
12
runs-on : ubuntu-20.04
29
13
timeout-minutes : 20
Original file line number Diff line number Diff line change
1
+ # Files are installed under $(DESTDIR)/$(PREFIX)
2
+ PREFIX ?= /usr/local
3
+
1
4
GO ?= go
2
5
3
6
TAR ?= tar
@@ -19,6 +22,9 @@ binaries: \
19
22
_output/bin/nerdctl.lima \
20
23
_output/share/lima/lima-guestagent.Linux-x86_64 \
21
24
_output/share/lima/lima-guestagent.Linux-aarch64
25
+ mkdir -p _output/share/doc/lima
26
+ cp -aL README.md LICENSE docs examples _output/share/doc/lima
27
+ echo $(VERSION ) > _output/share/doc/lima/VERSION
22
28
23
29
.PHONY : _output/bin/lima
24
30
_output/bin/lima :
@@ -46,8 +52,17 @@ _output/share/lima/lima-guestagent.Linux-aarch64:
46
52
47
53
.PHONY : install
48
54
install :
49
- cp -av _output/* /usr/local/
50
- if [[ $( shell uname -s ) != Linux && ! -e /usr/local/bin/nerdctl ]]; then ln -sf nerdctl.lima /usr/local/bin/nerdctl; fi
55
+ cp -av _output/* " $( DESTDIR) /$( PREFIX) /"
56
+ if [[ $( shell uname -s ) != Linux && ! -e " $( DESTDIR) /$( PREFIX) /bin/nerdctl" ]]; then ln -sf nerdctl.lima " $( DESTDIR) /$( PREFIX) /bin/nerdctl" ; fi
57
+
58
+ .PHONY : uninstall
59
+ uninstall :
60
+ rm -rf \
61
+ " $( DESTDIR) /$( PREFIX) /bin/lima" \
62
+ " $( DESTDIR) /$( PREFIX) /bin/limactl" \
63
+ " $( DESTDIR) /$( PREFIX) /bin/nerdctl.lima" \
64
+ " $( DESTDIR) /$( PREFIX) /share/lima" " $( DESTDIR) /$( PREFIX) /share/doc/lima"
65
+ # TODO: remove $(DESTDIR)/$(PREFIX)/bin/nerdctl only when it is a symlink to nerdctl.lima
51
66
52
67
.PHONY : clean
53
68
clean :
You can’t perform that action at this time.
0 commit comments