<commit_before>gobins := haven-b-zbackup-splitter haven-b-gdrivesync haven-b-gdriverestore
shbins := haven-b-archive-bundles haven-b-backup haven-b-init haven-b-restore
outgo := $(foreach bin,$(gobins),out/$(bin))
outsh := $(foreach bin,$(shbins),out/$(bin))

outvendor := out/haven-b-jq out/haven-b-zbackup out/haven-b-gdrive

executables := $(outgo) $(outsh) $(outvendor)
version = $(shell cat VERSION)

pkgbase = haven-v$(version)-$(shell eval '$(shell go env); echo $$GOOS')-$(shell eval '$(shell go env); echo $$GOARCH')
pkgtgz=pkg/$(pkgbase).tar.gz
pkgtxz=pkg/$(pkgbase).tar.xz
pkgs=$(pkgtgz) $(pkgtxz)

all: $(executables)

pkg: $(pkgs)

$(pkgtgz): $(executables) pkg
	tar --transform "s,^out,/$(pkgbase)/," -cxf $@ $^

$(pkgtxz): $(executables) pkg
	tar --transform "s,^out,/$(pkgbase)/," -cJf $@ $^

pkg:
	mkdir $@

out/haven-b-jq:
	cp `which jq` $@

out/haven-b-zbackup:
	cp `which zbackup` $@

out/haven-b-gdrive:
	godep go build -o $@ github.com/prasmussen/gdrive

$(outgo): out/haven-b-%: $(wildcard %/*.go)
	godep go build -o $@ $<

$(outsh): out/%: bin/%
	cp $< $@

install: $(executables)
	cp $^ /usr/local/bin

clean:
	rm -fr out
<commit_msg>sorta-fix<commit_after>gobins := haven-b-zbackup-splitter haven-b-gdrivesync haven-b-gdriverestore
shbins := haven-b-archive-bundles haven-b-backup haven-b-init haven-b-restore
outgo := $(foreach bin,$(gobins),out/$(bin))
outsh := $(foreach bin,$(shbins),out/$(bin))

outvendor := out/haven-b-jq out/haven-b-zbackup out/haven-b-gdrive

executables := $(outgo) $(outsh) $(outvendor)
version = $(shell cat VERSION)

pkgbase = haven-v$(version)-$(shell eval '$(shell go env); echo $$GOOS')-$(shell eval '$(shell go env); echo $$GOARCH')
pkgtgz=pkg/$(pkgbase).tar.gz
pkgtxz=pkg/$(pkgbase).tar.xz
pkgs=$(pkgtgz) $(pkgtxz)

all: $(executables)

pkg: $(pkgs)

$(pkgtgz): $(executables) pkg
	tar --transform "s,^out,/$(pkgbase)/," -cxf $@ $^

$(pkgtxz): $(executables) pkg
	tar --transform "s,^out,/$(pkgbase)/," -cJf $@ $^

pkg:
	mkdir $@

out/haven-b-jq:
	cp `which jq` $@

out/haven-b-zbackup:
	cp `which zbackup` $@

out/haven-b-gdrive:
	godep go build -o $@ github.com/prasmussen/gdrive

.SECONDEXPANSION:
$(outgo): out/haven-b-%: $$(notdir $$*)/*.go
	godep go build -o $@ $*/*.go

$(outsh): out/%: bin/%
	cp $< $@

install: $(executables)
	cp $^ /usr/local/bin

clean:
	rm -fr out

{'fraction_non_alphanumeric': 0.22540633019674935, 'fraction_numerical': 0.0, 'mean_word_length': 4.340182648401827, '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': '699571', 'n_tokens_mistral': 1023, 'n_tokens_neox': 963, 'n_words': 200}