<commit_before># PROGS ?= $(notdir $(shell go list ./...))
PROGS ?= $(filter-out bin Makefile,$(shell ls))

.PHONY: $(PROGS)

Q ?= @

GITSYM ?= github.com/currantlabs/$@/config.GitCommit
GITHEAD	?= $(shell git rev-parse --quiet HEAD)

BUILDDATESYM ?= github.com/currantlabs/$@/config.BuildDate
BUILDDATE	?= $(shell date -u +"%Y-%m-%dT%H:%M:%SZ")

LDFLAGS		?= -ldflags="-w -X $(BUILDDATESYM)=$(BUILDDATE) -X $(GITSYM)=$(GITHEAD)"

all: $(PROGS)

list:
	$(Q) echo $(PROGS)

prepare:
	$(Q) mkdir -p bin

run-%: bin/%
	$(Q) echo Running prebuilt bin/$@ ...
	sudo LOGXI=${LOGXI} $<

$(PROGS):
	$(Q) echo Building bin/$@ ...
	$(Q) GOGC=off GOOS=linux go build  $(LDFLAGS) -o bin/$@ $@/*.go
	sudo LOGXI=${LOGXI} bin/$@

clean:
	$(Q) rm -rf bin
<commit_msg> examples: modify Makefile for the ease of development iterations<commit_after># PROGS ?= $(notdir $(shell go list ./...))
PROGS ?= $(filter-out bin Makefile,$(shell ls))

BUILD_CMD	?= GOGC=off GOOS=linux go build $(LDFLAGS) -i -o bin/$@ $@/*.go
DEPLOY_CMD	?= scp bin/$< gentoo:/tmp
RUN_CMD		?= ssh -t gentoo sudo LOGXI=${LOGXI} /tmp/$<

.PHONY: $(PROGS)

Q ?= @

GITSYM ?= github.com/currantlabs/$@/config.GitCommit
GITHEAD	?= $(shell git rev-parse --quiet HEAD)

BUILDDATESYM ?= github.com/currantlabs/$@/config.BuildDate
BUILDDATE	?= $(shell date -u +"%Y-%m-%dT%H:%M:%SZ")

LDFLAGS		?= -ldflags="-w -X $(BUILDDATESYM)=$(BUILDDATE) -X $(GITSYM)=$(GITHEAD)"

all: $(PROGS)

$(PROGS):
	$(Q) $(BUILD_CMD)

run-%: %
	$(Q) $(DEPLOY_CMD)
	$(Q) $(RUN_CMD)
clean:
	$(Q) rm -rf bin

{'fraction_non_alphanumeric': 0.23293963254593175, 'fraction_numerical': 0.0, 'mean_word_length': 4.016447368421052, 'pattern_counts': {'":': 0, '<': 6, '<?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': '608936', 'n_tokens_mistral': 708, 'n_tokens_neox': 672, 'n_words': 157}