File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ PLANTUML ?= plantuml # may also be "java -jar plantuml.jar" if installed elsewhe
99
1010GOOS ?= $(shell $(GO ) env GOOS)
1111ifeq ($(GOOS ) ,windows)
12+ bat = .bat
1213exe = .exe
1314endif
1415
@@ -27,6 +28,7 @@ exe: _output/bin/limactl$(exe)
2728.PHONY : binaries
2829binaries : clean \
2930 _output/bin/lima \
31+ _output/bin/lima$(bat ) \
3032 _output/bin/limactl$(exe ) \
3133 _output/bin/nerdctl.lima \
3234 _output/bin/docker.lima \
@@ -49,6 +51,11 @@ _output/bin/lima:
4951 mkdir -p _output/bin
5052 cp -a ./cmd/lima $@
5153
54+ .PHONY : _output/bin/lima.bat
55+ _output/bin/lima.bat :
56+ mkdir -p _output/bin
57+ cp -a ./cmd/lima.bat $@
58+
5259.PHONY : _output/bin/nerdctl.lima
5360_output/bin/nerdctl.lima :
5461 mkdir -p _output/bin
@@ -100,6 +107,7 @@ uninstall:
100107 @test -f " $( DEST) /bin/lima" || echo " lima not found in $( DEST) prefix"
101108 rm -rf \
102109 " $( DEST) /bin/lima" \
110+ " $( DEST) /bin/lima$( bat) " \
103111 " $( DEST) /bin/limactl$( exe) " \
104112 " $( DEST) /bin/nerdctl.lima" \
105113 " $( DEST) /bin/docker.lima" \
Original file line number Diff line number Diff line change 1+ @ echo off
2+ IF NOT DEFINED LIMACTL (SET LIMACTL=limactl)
3+ IF NOT DEFINED LIMA_INSTANCE (SET LIMA_INSTANCE=default)
4+ %LIMACTL% shell %LIMA_INSTANCE% %*
You can’t perform that action at this time.
0 commit comments