@@ -112,7 +112,8 @@ help-targets:
112
112
@echo ' - limactl : Build limactl, and lima'
113
113
@echo ' - lima : Copy lima, and lima.bat'
114
114
@echo ' - helpers : Copy nerdctl.lima, apptainer.lima, docker.lima, podman.lima, and kubectl.lima'
115
- # TODO: move CLI plugins to _output/libexec/lima/
115
+ @echo
116
+ @echo ' Targets for files in _output/libexec/lima/:'
116
117
@echo ' - limactl-plugins : Build limactl-* CLI plugins'
117
118
@echo
118
119
@echo ' Targets for files in _output/share/lima/:'
@@ -282,25 +283,26 @@ ifeq ($(GOOS),darwin)
282
283
codesign -f -v --entitlements vz.entitlements -s - $@
283
284
endif
284
285
285
- limactl-plugins : _output/bin/limactl-mcp $( exe )
286
+ LIBEXEC_LIMA := _output/libexec/lima
286
287
287
- _output/bin/limactl-mcp$(exe ) : $(call dependencies_for_cmd,limactl-mcp) $$(call force_build,$$@ )
288
- $(ENVS_$@ ) $(GO_BUILD ) -o $@ ./cmd/limactl-mcp
288
+ limactl-plugins : $(LIBEXEC_LIMA ) /limactl-mcp$(exe )
289
289
290
- DRIVER_INSTALL_DIR := _output/libexec/lima
290
+ $(LIBEXEC_LIMA ) /limactl-mcp$(exe ) : $(call dependencies_for_cmd,limactl-mcp) $$(call force_build,$$@ )
291
+ @mkdir -p $(LIBEXEC_LIMA )
292
+ $(ENVS_$@ ) $(GO_BUILD ) -o $@ ./cmd/limactl-mcp
291
293
292
294
.PHONY : additional-drivers
293
295
additional-drivers :
294
- @mkdir -p $(DRIVER_INSTALL_DIR )
296
+ @mkdir -p $(LIBEXEC_LIMA )
295
297
@for drv in $(ADDITIONAL_DRIVERS ) ; do \
296
298
echo " Building $$ drv as external" ; \
297
299
if [ " $( GOOS) " = " windows" ]; then \
298
- $(GO_BUILD ) -o $(DRIVER_INSTALL_DIR ) /lima-driver-$$ drv.exe ./cmd/lima-driver-$$ drv; \
300
+ $(GO_BUILD ) -o $(LIBEXEC_LIMA ) /lima-driver-$$ drv.exe ./cmd/lima-driver-$$ drv; \
299
301
else \
300
- $(GO_BUILD ) -o $(DRIVER_INSTALL_DIR ) /lima-driver-$$ drv ./cmd/lima-driver-$$ drv; \
302
+ $(GO_BUILD ) -o $(LIBEXEC_LIMA ) /lima-driver-$$ drv ./cmd/lima-driver-$$ drv; \
301
303
fi ; \
302
304
if [ " $$ drv" = " vz" ] && [ " $( GOOS) " = " darwin" ]; then \
303
- codesign -f -v --entitlements vz.entitlements -s - $(DRIVER_INSTALL_DIR ) /lima-driver-vz; \
305
+ codesign -f -v --entitlements vz.entitlements -s - $(LIBEXEC_LIMA ) /lima-driver-vz; \
304
306
fi ; \
305
307
done
306
308
@@ -523,7 +525,6 @@ uninstall:
523
525
" $( DEST) /bin/lima" \
524
526
" $( DEST) /bin/lima$( bat) " \
525
527
" $( DEST) /bin/limactl$( exe) " \
526
- " $( DEST) /bin/limactl-mcp$( exe) " \
527
528
" $( DEST) /bin/nerdctl.lima" \
528
529
" $( DEST) /bin/apptainer.lima" \
529
530
" $( DEST) /bin/docker.lima" \
@@ -533,6 +534,7 @@ uninstall:
533
534
" $( DEST) /share/man/man1/limactl" * " .1" \
534
535
" $( DEST) /share/lima" \
535
536
" $( DEST) /share/doc/lima" \
537
+ " $( DEST) /libexec/lima/limactl-mcp$( exe) " \
536
538
" $( DEST) /libexec/lima/lima-driver-qemu$( exe) " \
537
539
" $( DEST) /libexec/lima/lima-driver-vz$( exe) " \
538
540
" $( DEST) /libexec/lima/lima-driver-wsl2$( exe) "
0 commit comments