make clean will remove all gitignored files

This commit is contained in:
Christoph Blecker 2017-09-04 11:04:09 -07:00
parent 0a88323013
commit b6f6419423
No known key found for this signature in database
GPG Key ID: B34A59A9D39F838B
3 changed files with 8 additions and 6 deletions

3
.gitignore vendored
View File

@ -120,5 +120,8 @@ zz_generated.openapi.go
# This file used by some vendor repos (e.g. github.com/go-openapi/...) to store secret variables and should not be ignored
!\.drone\.sec
# Godeps workspace
/Godeps/_workspace
/bazel-*
*.pyc

View File

@ -409,8 +409,10 @@ function kube::build::clean() {
"${DOCKER[@]}" rmi $("${DOCKER[@]}" images -q --filter 'dangling=true') 2> /dev/null || true
fi
if [[ -d "${LOCAL_OUTPUT_ROOT}" ]]; then
kube::log::status "Removing _output directory"
rm -rf "${LOCAL_OUTPUT_ROOT}"
fi
}
# Set up the context directory for the kube-build image and build it.

View File

@ -309,10 +309,7 @@ clean:
else
clean: clean_meta
build/make-clean.sh
rm -rf $(OUT_DIR)
rm -rf Godeps/_workspace # Just until we are sure it is gone
# TODO(thockin): Remove this when we call clean_generated.
rm -f pkg/generated/openapi/zz_generated.openapi.go
git clean -Xdf
endif
define CLEAN_META_HELP_INFO