<commit_before>NAME = $(shell awk -F\" '/^const Name/ { print $$2 }' main.go)
VERSION = $(shell awk -F\" '/^const Version/ { print $$2 }' main.go)
TESTDEPS = $(shell go list -f '{{range .TestImports}}{{.}} {{end}}' $(shell glide novendor))
DOCKERREPO=ciscocloud

all: deps build

deps:
	glide install
	echo $(TESTDEPS) | xargs -n1 go get

updatedeps:
	glide update

quickbuild:
	@mkdir -p bin/
	go build -o bin/$(NAME)

build: deps quickbuild

quicktest:
	go test $(shell glide novendor) -timeout=30s -parallel=4

test: deps quicktest
	go vet $(shell glide novendor)

docker: deps
	find . -name ".DS_Store" -depth -exec rm {} \;
	docker build -t $(DOCKERREPO)/$(NAME) .
	docker tag -f $(DOCKERREPO)/$(NAME) $(DOCKERREPO)/$(NAME):$(VERSION)

pushedge: docker
	docker tag -f $(DOCKERREPO)/$(NAME) $(DOCKERREPO)/$(NAME):edge
	docker push $(DOCKERREPO)/$(NAME):edge

push: docker
	docker push $(DOCKERREPO)/$(NAME):$(VERSION)
	docker push $(DOCKERREPO)/$(NAME):latest<commit_msg>better glide support in makefile<commit_after>NAME = $(shell awk -F\" '/^const Name/ { print $$2 }' main.go)
VERSION = $(shell awk -F\" '/^const Version/ { print $$2 }' main.go)
TESTDEPS = $(shell go list -f '{{range .TestImports}}{{.}} {{end}}' $(shell glide novendor))
DOCKERREPO=ciscocloud

all: deps build

deps:
	glide install --strip-vcs --strip-vendor --update-vendored
	find vendor -not -name '*.go' -not -name '*.s' -not -name '*.pl' -not -name '*.c' -not -name LICENSE -type f -delete
	echo $(TESTDEPS) | xargs -n1 go get

updatedeps:
	glide update --strip-vcs --strip-vendor --update-vendored
	find vendor -not -name '*.go' -not -name '*.s' -not -name '*.pl' -not -name '*.c' -not -name LICENSE -type f -delete

quickbuild:
	go build .

build: deps quickbuild

quicktest:
	go test $(shell glide novendor) -timeout=30s -parallel=4

test: deps quicktest
	go vet $(shell glide novendor)

docker: deps
	find . -name ".DS_Store" -depth -exec rm {} \;
	docker build -t $(DOCKERREPO)/$(NAME) .
	docker tag -f $(DOCKERREPO)/$(NAME) $(DOCKERREPO)/$(NAME):$(VERSION)

pushedge: docker
	docker tag -f $(DOCKERREPO)/$(NAME) $(DOCKERREPO)/$(NAME):edge
	docker push $(DOCKERREPO)/$(NAME):edge

push: docker
	docker push $(DOCKERREPO)/$(NAME):$(VERSION)
	docker push $(DOCKERREPO)/$(NAME):latest
{'fraction_non_alphanumeric': 0.1857899382171227, 'fraction_numerical': 0.00529567519858782, 'mean_word_length': 3.9824175824175825, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '3149139', 'n_tokens_mistral': 887, 'n_tokens_neox': 858, 'n_words': 258}