File tree Expand file tree Collapse file tree 2 files changed +17
-18
lines changed Expand file tree Collapse file tree 2 files changed +17
-18
lines changed Original file line number Diff line number Diff line change 88 pull_request :
99
1010jobs :
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-
2711 golangci-lint :
2812 runs-on : ubuntu-20.04
2913 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+
14GO ?= go
25
36TAR ?= tar
@@ -19,6 +22,9 @@ binaries: \
1922 _output/bin/nerdctl.lima \
2023 _output/share/lima/lima-guestagent.Linux-x86_64 \
2124 _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
2228
2329.PHONY : _output/bin/lima
2430_output/bin/lima :
@@ -46,8 +52,17 @@ _output/share/lima/lima-guestagent.Linux-aarch64:
4652
4753.PHONY : install
4854install :
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
5166
5267.PHONY : clean
5368clean :
You can’t perform that action at this time.
0 commit comments