<commit_before>GO ?= go

all: test build

get:
	$(GO) get -u github.com/gorilla/mux
	$(GO) get -u github.com/coreos/etcd/client
	$(GO) get -u golang.org/x/net/context
	$(GO) get -u github.com/stretchr/testify/assert
	
test:
	$(GO) test

build:
	$(GO) build

static_linux:
	env GOOS=linux GOARCH=amd64 $(GO) build -a -ldflags '-s' -tags netgo -installsuffix netgo -v -o ccentral
<commit_msg>Makefile to build linux version in isolated gopath<commit_after>GO ?= go
TMP_PATH ?= /tmp/gopath

all: test build

get:
	$(GO) get -u github.com/gorilla/mux
	$(GO) get -u github.com/coreos/etcd/client
	$(GO) get -u golang.org/x/net/context
	$(GO) get -u github.com/stretchr/testify/assert
	
test:
	$(GO) test

build:
	$(GO) build

static_linux:
	rm -rf ${TMP_PATH}
	mkdir ${TMP_PATH}
	mkdir -p ${TMP_PATH}/src/github.com/slvwolf/ccentral
	GOPATH=${TMP_PATH} go get -d -u -v \
		github.com/gorilla/mux \
		github.com/coreos/etcd/client \
		golang.org/x/net/context
	cp -r * ${TMP_PATH}/src/github.com/slvwolf/ccentral
	GOPATH=${TMP_PATH} env GOOS=linux GOARCH=amd64 $(GO) build -a -ldflags '-s' -tags netgo -installsuffix netgo -v -o ccentral
{'fraction_non_alphanumeric': 0.15649867374005305, 'fraction_numerical': 0.0035366931918656055, 'mean_word_length': 3.6016260162601625, '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': '2686930', 'n_tokens_mistral': 492, 'n_tokens_neox': 478, 'n_words': 118}