Adds 'make clean' command
Adds a `make clean` command that removes the odo binary in the folder as
well as the `dist` folder where compiled binaries go.
Closes
@@ -2,6 +2,7 @@ PROJECT := github.com/redhat-developer/odo
GITCOMMIT := $(shell git rev-parse --short HEAD 2>/dev/null)
PKGS := $(shell go list ./... | grep -v $(PROJECT)/vendor)
BUILD_FLAGS := -ldflags="-w -X $(PROJECT)/cmd.GITCOMMIT=$(GITCOMMIT)"
+FILES := odo dist
default: bin
@@ -34,6 +35,10 @@ lint:
vet:
go vet $(PKGS)
+.PHONY: clean
+clean:
+ @rm -rf $(FILES)
+
# install tools used for building, tests and validations
.PHONY: goget-tools
goget-tools:
