<commit_before>.PHONY: default help clean build install devel dist

DESTDIR := ""
PREFIX := /usr/local

default: devel

help:
	@echo "clean          Clean up the source tree"
	@echo "build          Build the code"
	@echo "install        Install the code"
	@echo "test           Run tests"
	@echo "devel          Clean, build, install, test"
	@echo "dist           Generate a release tarball"

clean:
	find python -type f -name \*.pyc -delete
	rm -rf build
	rm -rf install
	rm -rf output
	rm -rf dist

build:
	mkdir -p build/bin

	scripts/configure-file bin/transom.in build/bin/transom \
		transom_home "${PREFIX}/share/transom"

install: build
	scripts/install-files python "${DESTDIR}${PREFIX}/share/transom/python" \*.py

	install -d "${DESTDIR}${PREFIX}/share/transom/resources"
	install -m 644 resources/* "${DESTDIR}${PREFIX}/share/transom/resources"

	install -d "${DESTDIR}${PREFIX}/bin"
	install -m 755 build/bin/transom "${DESTDIR}${PREFIX}/bin/transom"

test: install
	transom input output

devel: PREFIX := "${PWD}/install"
devel: clean test

dist: VERSION := $(shell cat VERSION)
dist:
	mkdir -p dist
	git archive --prefix "transom-${VERSION}/" --output "dist/transom-${VERSION}.tar.gz" HEAD<commit_msg>A longer line, but nicer make output<commit_after>.PHONY: default help clean build install devel dist

DESTDIR := ""
PREFIX := /usr/local

default: devel

help:
	@echo "clean          Clean up the source tree"
	@echo "build          Build the code"
	@echo "install        Install the code"
	@echo "test           Run tests"
	@echo "devel          Clean, build, install, test"
	@echo "dist           Generate a release tarball"

clean:
	find python -type f -name \*.pyc -delete
	rm -rf build
	rm -rf install
	rm -rf output
	rm -rf dist

build:
	mkdir -p build/bin

	scripts/configure-file bin/transom.in build/bin/transom transom_home "${PREFIX}/share/transom"

install: build
	scripts/install-files python "${DESTDIR}${PREFIX}/share/transom/python" \*.py

	install -d "${DESTDIR}${PREFIX}/share/transom/resources"
	install -m 644 resources/* "${DESTDIR}${PREFIX}/share/transom/resources"

	install -d "${DESTDIR}${PREFIX}/bin"
	install -m 755 build/bin/transom "${DESTDIR}${PREFIX}/bin/transom"

test: install
	transom input output

devel: PREFIX := "${PWD}/install"
devel: clean test

dist: VERSION := $(shell cat VERSION)
dist:
	mkdir -p dist
	git archive --prefix "transom-${VERSION}/" --output "dist/transom-${VERSION}.tar.gz" HEAD
{'fraction_non_alphanumeric': 0.1379028967768258, 'fraction_numerical': 0.004895960832313341, 'mean_word_length': 3.4021543985637344, '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': '577607', 'n_tokens_mistral': 841, 'n_tokens_neox': 814, 'n_words': 255}