<commit_before>SOURCEDIR=.
BINARY=docker-registry-cli

LDFLAGS=-ldflags "-X github.com/odedlaz/docker-registry-cli/core.build=`git rev-parse HEAD`"

.DEFAULT_GOAL: all

.PHONY: all
all: build build-alpine

.PHONY: build
build:
	go build ${LDFLAGS} -o ${SOURCEDIR}/bin/${BINARY}

.PHONY: build-alpine
build-alpine:
	CGO_ENABLED=0 go build ${LDFLAGS} -a -installsuffix cgo -o ${SOURCEDIR}/bin/${BINARY}-alpine

.PHONY: test
test:
	go test ./...

.PHONY: install
install:
	go install ${LDFLAGS}

.PHONY: clean
clean:
	rm -rf ${SOURCEDIR}/bin/*
<commit_msg>Add extra build target<commit_after>SOURCEDIR=.
BINARY=docker-registry-cli

LDFLAGS=-ldflags "-X github.com/odedlaz/docker-registry-cli/core.build=`git rev-parse HEAD`"

.DEFAULT_GOAL: all

.PHONY: all
all: build build-alpine64 build-osx64

# options: https://stackoverflow.com/questions/20728767/all-possible-goos-value

.PHONY: build
build:
	GOOS=linux GOARCH=amd64 go build ${LDFLAGS} -o ${SOURCEDIR}/bin/${BINARY}-linux64

.PHONY: build-alpine
build-alpine64:
	CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build ${LDFLAGS} -a -installsuffix cgo -o ${SOURCEDIR}/bin/${BINARY}-alpine64

.PHONY: build-osx
build-osx64:
	GOOS=darwin GOARCH=amd64 go build ${LDFLAGS} -a -installsuffix cgo -o ${SOURCEDIR}/bin/${BINARY}-osx64

.PHONY: test
test:
	go test ./...

.PHONY: install
install:
	go install ${LDFLAGS}

.PHONY: clean
clean:
	rm -rf ${SOURCEDIR}/bin/*

{'fraction_non_alphanumeric': 0.15647226173541964, 'fraction_numerical': 0.021337126600284494, 'mean_word_length': 4.453488372093023, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '4161868', 'n_tokens_mistral': 619, 'n_tokens_neox': 591, 'n_words': 125}