<commit_before>export GO15VENDOREXPERIMENT:=1
export CGO_ENABLED:=0
export GOARCH:=amd64

GOFILES:=$(shell find . -name '*.go' | grep -v -E '(./vendor|internal/templates.go)')
GOPACKAGES:=$(shell go list ./... | grep -v '/vendor/')
GOPATH_BIN:=$(shell echo ${GOPATH} | awk 'BEGIN { FS = ":" }; { print $1 }')/bin

all: fmt vet bin/linux/bootkube bin/darwin/bootkube

fmt:
	@find . -name vendor -prune -o -name '*.go' -exec gofmt -s -d {} +

vet:
	@go vet $(GOPACKAGES)

# This will naively try and create a vendor dir from a k8s release
# USE: make vendor VENDOR_VERSION=vX.Y.Z
VENDOR_VERSION = v1.2.1
vendor: vendor-$(VENDOR_VERSION)

bin/%/bootkube: $(GOFILES) pkg/asset/internal/templates.go
	mkdir -p $(dir $@)
	GOOS=$* go build -o bin/$*/bootkube github.com/coreos/bootkube/cmd/bootkube

install: all
	cp bin/$(shell uname | tr A-Z a-z)/bootkube $(GOPATH_BIN)

pkg/asset/internal/templates.go: $(GOFILES)
	mkdir -p $(dir $@)
	go generate pkg/asset/templates_gen.go

vendor-$(VENDOR_VERSION):
	@echo "Creating k8s vendor dir: $@"
	@mkdir -p $@/k8s.io/kubernetes
	@git clone --branch=$(VENDOR_VERSION) --depth=1 https://github.com/kubernetes/kubernetes $@/k8s.io/kubernetes > /dev/null 2>&1
	@cd $@/k8s.io/kubernetes && git checkout $(VENDOR_VERSION) > /dev/null 2>&1
	@cd $@/k8s.io/kubernetes && rm -rf docs examples hack cluster
	@cd $@/k8s.io/kubernetes/Godeps/_workspace/src && mv k8s.io/heapster $(abspath $@/k8s.io) && rmdir k8s.io
	@mv $@/k8s.io/kubernetes/Godeps/_workspace/src/* $(abspath $@)
	@rm -rf $@/k8s.io/kubernetes/Godeps $@/k8s.io/kubernetes/.git

clean:
	rm -rf bin/
	rm -rf pkg/asset/internal

.PHONY: all clean fmt vet install pkg/asset/internal/templates.go

<commit_msg>Makefile: fix issue running "clean all" in single step<commit_after>export GO15VENDOREXPERIMENT:=1
export CGO_ENABLED:=0
export GOARCH:=amd64

GOFILES:=$(shell find . -name '*.go' | grep -v -E '(./vendor|internal/templates.go)')
GOPATH_BIN:=$(shell echo ${GOPATH} | awk 'BEGIN { FS = ":" }; { print $1 }')/bin

all: fmt bin/linux/bootkube bin/darwin/bootkube vet

fmt:
	@find . -name vendor -prune -o -name '*.go' -exec gofmt -s -d {} +

vet: GOPACKAGES:=$(shell go list ./... | grep -v '/vendor/')
vet:
	@go vet $(GOPACKAGES)

# This will naively try and create a vendor dir from a k8s release
# USE: make vendor VENDOR_VERSION=vX.Y.Z
VENDOR_VERSION = v1.2.1
vendor: vendor-$(VENDOR_VERSION)

bin/%/bootkube: $(GOFILES) pkg/asset/internal/templates.go
	mkdir -p $(dir $@)
	GOOS=$* go build -o bin/$*/bootkube github.com/coreos/bootkube/cmd/bootkube

install: all
	cp bin/$(shell uname | tr A-Z a-z)/bootkube $(GOPATH_BIN)

pkg/asset/internal/templates.go: $(GOFILES)
	mkdir -p $(dir $@)
	go generate pkg/asset/templates_gen.go

vendor-$(VENDOR_VERSION):
	@echo "Creating k8s vendor dir: $@"
	@mkdir -p $@/k8s.io/kubernetes
	@git clone --branch=$(VENDOR_VERSION) --depth=1 https://github.com/kubernetes/kubernetes $@/k8s.io/kubernetes > /dev/null 2>&1
	@cd $@/k8s.io/kubernetes && git checkout $(VENDOR_VERSION) > /dev/null 2>&1
	@cd $@/k8s.io/kubernetes && rm -rf docs examples hack cluster
	@cd $@/k8s.io/kubernetes/Godeps/_workspace/src && mv k8s.io/heapster $(abspath $@/k8s.io) && rmdir k8s.io
	@mv $@/k8s.io/kubernetes/Godeps/_workspace/src/* $(abspath $@)
	@rm -rf $@/k8s.io/kubernetes/Godeps $@/k8s.io/kubernetes/.git

clean:
	rm -rf bin/
	rm -rf pkg/asset/internal

.PHONY: all clean fmt vet install pkg/asset/internal/templates.go


{'fraction_non_alphanumeric': 0.17859220477021523, 'fraction_numerical': 0.016288539848749273, 'mean_word_length': 3.898860398860399, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1603822', 'n_tokens_mistral': 1453, 'n_tokens_neox': 1380, 'n_words': 331}