<commit_before>NAME	:= vzstorage-pd
BINS	:= vzstorage-pd
BINDIR	:= /usr/bin
GITID	:= $(shell git describe --always HEAD)
TARNAME	:= $(NAME)-$(GITID)

all:
	go build .
.PHONY: all

tar: $(TARNAME).tar.bz2
.PHONY: tar

dist: tar
.PHONY: dist

$(TARNAME).tar.bz2:
	(cd .. && git archive --format tar --prefix "$(TARNAME)/" $(GITID)) \
		| bzip2 -9 > $@

install-bin:
	install -d $(DESTDIR)$(BINDIR)
	install $(BINS) $(DESTDIR)$(BINDIR)/
.PHONY: install-bin

install: install-bin
.PHONY: install

clean:
	rm -f $(BINS)
	rm -f $(TARNAME).tar.bz2
.PHONY: clean<commit_msg>Makefile: don't fail if git describe fails<commit_after>NAME	:= vzstorage-pd
BINS	:= vzstorage-pd
BINDIR	:= /usr/bin
GITID	?= $(shell git describe --always HEAD || true)
TARNAME	:= $(NAME)-$(GITID)

all:
	go build .
.PHONY: all

tar: $(TARNAME).tar.bz2
.PHONY: tar

dist: tar
.PHONY: dist

$(TARNAME).tar.bz2:
	(cd .. && git archive --format tar --prefix "$(TARNAME)/" $(GITID)) \
		| bzip2 -9 > $@

install-bin:
	install -d $(DESTDIR)$(BINDIR)
	install $(BINS) $(DESTDIR)$(BINDIR)/
.PHONY: install-bin

install: install-bin
.PHONY: install

clean:
	rm -f $(BINS)
	rm -f $(TARNAME).tar.bz2
.PHONY: clean
{'fraction_non_alphanumeric': 0.19846022241231823, 'fraction_numerical': 0.00855431993156544, 'mean_word_length': 3.624505928853755, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7282011', 'n_tokens_mistral': 539, 'n_tokens_neox': 520, 'n_words': 126}