diff --git a/Makefile b/Makefile index 59fde3af..65e11534 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,9 @@ build: install: @go run scripts/make.go install +uninstall: + @go run scripts/make.go uninstall + test: @go run scripts/make.go test diff --git a/scripts/make.go b/scripts/make.go index 2920d678..9b1e0b31 100644 --- a/scripts/make.go +++ b/scripts/make.go @@ -54,6 +54,14 @@ func NewMakeCommands() *cobra.Command { }, }) + RootCommand.AddCommand(&cobra.Command{ + Use: "uninstall", + Short: "Uninstalls delve", + Run: func(cmd *cobra.Command, args []string) { + execute("go", "clean", "-i", DelveMainPackagePath) + }, + }) + test := &cobra.Command{ Use: "test", Short: "Tests delve",