Makefile clean

This commit is contained in:
Lars Lehtonen 2017-09-02 17:35:31 -07:00
parent bd3daf41df
commit 475e877e80
No known key found for this signature in database
GPG Key ID: 8137D474EBCB04F2
1 changed files with 6 additions and 0 deletions

View File

@ -22,6 +22,8 @@ LATEST_FILE?=latest-ci.txt
GOPATH_1ST=$(shell go env | grep GOPATH | cut -f 2 -d \")
UNIQUE:=$(shell date +%s)
GOVERSION=1.8.3
BINDATA_TARGETS=upup/models/bindata.go federation/model/bindata.go
BUILD=${GOPATH_1ST}/src/k8s.io/kops/.build
# See http://stackoverflow.com/questions/18136918/how-to-get-current-relative-directory-of-your-makefile
MAKEDIR:=$(strip $(shell dirname "$(realpath $(lastword $(MAKEFILE_LIST)))"))
@ -107,6 +109,10 @@ help: # Show this help
echo ''; \
} 1>&2; \
clean: # Remove build directory and bindata-generated files
if test -e ${BUILD}; then rm -rf ${BUILD}; fi
for t in ${BINDATA_TARGETS}; do if test -e $$t; then rm $$t; fi; done
kops: kops-gobindata # Install kops
go install ${EXTRA_BUILDFLAGS} -ldflags "-X k8s.io/kops.Version=${VERSION} -X k8s.io/kops.GitVersion=${GITSHA} ${EXTRA_LDFLAGS}" k8s.io/kops/cmd/kops/...