diff --git a/Makefile b/Makefile index ae9d04de5d6..1deca854a00 100644 --- a/Makefile +++ b/Makefile @@ -98,6 +98,7 @@ help: @echo " * 'test' - Run basic unit testing." @echo " * 'binaries' - Build nerdctl." @echo " * 'install' - Install binaries to system locations." + @echo " * 'uninstall' - Remove installed binaries and documentation." @echo " * 'clean' - Clean artifacts." ########################## @@ -118,6 +119,14 @@ install: install -D -m 644 -t $(DESTDIR)$(DOCDIR)/nerdctl $(MAKEFILE_DIR)/docs/*.md $(call footer, $@) +uninstall: + $(call title, $@) + rm -f $(DESTDIR)$(BINDIR)/$(BINARY) + rm -f $(DESTDIR)$(BINDIR)/containerd-rootless.sh + rm -f $(DESTDIR)$(BINDIR)/containerd-rootless-setuptool.sh + rm -rf $(DESTDIR)$(DOCDIR)/nerdctl + $(call footer, $@) + clean: $(call title, $@) find . -name \*~ -delete @@ -308,6 +317,7 @@ artifacts: clean help \ binaries \ install \ + uninstall \ clean \ lint-go lint-go-all lint-yaml lint-shell lint-commits lint-mod lint-licenses lint-licenses-all \ fix-go fix-go-all fix-mod \