<commit_before>NAME ?= MusicBot
PACKAGE_NAME ?= $(NAME)
OUR_PACKAGES=$(shell go list ./... | grep -v '/vendor/')

all: deps verify build

help:

deps:
	go get -u github.com/golang/lint/golint
	go get -u github.com/Masterminds/glide

verify: fmt lint

fmt:
	@go fmt $(OUR_PACKAGES) | awk '{if (NF > 0) {if (NR == 1) print "Please run go fmt for:"; print "- "$$1}} END {if (NF > 0) {if (NR > 0) exit 1}}'

lint:
	@golint ./... | ( ! grep -v -e "^vendor/" -e "be unexported" -e "don't use an underscore in package name" -e "ALL_CAPS" )

build:
	go build -o "out/binaries/$(NAME)"<commit_msg>Attempt to cross compile using gox<commit_after>NAME ?= MusicBot
PACKAGE_NAME ?= $(NAME)

BUILD_PLATFORMS ?= -os '!netbsd' -os '!openbsd'

OUR_PACKAGES=$(shell go list ./... | grep -v '/vendor/')

all: deps verify build

help:

deps:
	go get -u github.com/golang/lint/golint
	go get github.com/mitchellh/gox
	go get -u github.com/Masterminds/glide

verify: fmt lint

fmt:
	@go fmt $(OUR_PACKAGES) | awk '{if (NF > 0) {if (NR == 1) print "Please run go fmt for:"; print "- "$$1}} END {if (NF > 0) {if (NR > 0) exit 1}}'

lint:
	@golint ./... | ( ! grep -v -e "^vendor/" -e "be unexported" -e "don't use an underscore in package name" -e "ALL_CAPS" )

build:
	gox $(BUILD_PLATFORMS) \
        -output="out/binaries/$(NAME)-{{.OS}}-{{.Arch}}"
{'fraction_non_alphanumeric': 0.19140919366993217, 'fraction_numerical': 0.00904295403165034, 'mean_word_length': 3.2838709677419353, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '3324214', 'n_tokens_mistral': 579, 'n_tokens_neox': 531, 'n_words': 169}