-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "make clean" target #363
Conversation
to provide a standard way to clean the environment after build. Signed-off-by: Lukáš Doktor <[email protected]>
@@ -152,6 +152,10 @@ endif | |||
docker-push: ## Push docker image with the manager. | |||
docker push ${IMG} | |||
|
|||
.PHONY: clean | |||
clean: ## Cleanup the build generated files | |||
rm -Rf bin/ cover.out bundle_tmp* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are other make targets that will install binaries under bin/ so I think delete them via rm was the right decision (rather than go clean
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ldoktor !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks
to provide a standard way to clean the environment after build.
Note I'm not a heavy "go" user so I simply took the paths from ".gitignore". I experimented with "go clean" but it did not work for me.