<commit_before>export CGO_ENABLED:=0

VERSION=$(shell git describe --dirty)
LD_FLAGS="-w -X github.com/coreos/container-linux-config-transpiler/internal/version.Raw=$(VERSION)"

REPO=github.com/coreos/container-linux-config-transpiler

all: build

build: bin/ct

bin/ct:
	@go build -o $@ -v -ldflags $(LD_FLAGS) $(REPO)/internal

test:
	@./test

.PHONY: vendor
vendor:
	@glide update --strip-vendor
	@glide-vc --use-lock-file --no-tests --only-code

clean:
	@rm -rf bin
	@rm -rf _output

.PHONY: release
release: \
	_output/unknown-linux-gnu/ct \
	_output/apple-darwin/ct \
	_output/pc-windows-gnu/ct

_output/unknown-linux-gnu/ct: GOARGS = GOOS=linux GOARCH=amd64
_output/apple-darwin/ct: GOARGS = GOOS=darwin GOARCH=amd64
_output/pc-windows-gnu/ct: GOARGS = GOOS=windows GOARCH=amd64

_output/%/ct: NAME=_output/ct-$(VERSION)-x86_64-$*
_output/%/ct:
	$(GOARGS) go build -o $(NAME) -ldflags $(LD_FLAGS) $(REPO)/internal

.PHONY: all build clean test<commit_msg>build: add verbose flag to makefile<commit_after>export CGO_ENABLED:=0

# kernel-style V=1 build verbosity
ifeq ("$(origin V)", "command line")
       BUILD_VERBOSE = $(V)
endif

ifeq ($(BUILD_VERBOSE),1)
       Q =
else
       Q = @
endif

VERSION=$(shell git describe --dirty)
LD_FLAGS="-w -X github.com/coreos/container-linux-config-transpiler/internal/version.Raw=$(VERSION)"

REPO=github.com/coreos/container-linux-config-transpiler

all: build

build: bin/ct

bin/ct:
	$(Q)go build -o $@ -v -ldflags $(LD_FLAGS) $(REPO)/internal

test:
	$(Q)./test

.PHONY: vendor
vendor:
	$(Q)glide update --strip-vendor
	$(Q)glide-vc --use-lock-file --no-tests --only-code

clean:
	$(Q)rm -rf bin
	$(Q)rm -rf _output

.PHONY: release
release: \
	_output/unknown-linux-gnu/ct \
	_output/apple-darwin/ct \
	_output/pc-windows-gnu/ct

_output/unknown-linux-gnu/ct: GOARGS = GOOS=linux GOARCH=amd64
_output/apple-darwin/ct: GOARGS = GOOS=darwin GOARCH=amd64
_output/pc-windows-gnu/ct: GOARGS = GOOS=windows GOARCH=amd64

_output/%/ct: NAME=_output/ct-$(VERSION)-x86_64-$*
_output/%/ct:
	$(Q)$(GOARGS) go build -o $(NAME) -ldflags $(LD_FLAGS) $(REPO)/internal

.PHONY: all build clean test
{'fraction_non_alphanumeric': 0.1665886757136172, 'fraction_numerical': 0.011230697239120261, 'mean_word_length': 4.054373522458629, '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': '5019712', 'n_tokens_mistral': 865, 'n_tokens_neox': 849, 'n_words': 172}