Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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."

##########################
Expand All @@ -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
Expand Down Expand Up @@ -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 \
Expand Down
Loading