<commit_before>COFFEE = $(shell find src -name "*.coffee")
JS = $(COFFEE:src%.coffee=lib%.js)

all: bin/wach-watchdir $(JS)

lib/%.js : src/%.coffee
	./node_modules/.bin/coffee \
		--compile \
		--lint \
		--output lib $<

bin/wach-watchdir: src/watchdir.c
	clang \
		-Wall \
		-framework CoreServices \
		-o $@ $<

test : test-support

test-support :
	./node_modules/.bin/mocha test/support_test --ui qunit --bail --colors

tag:
	git tag v`coffee -e "console.log JSON.parse(require('fs').readFileSync 'package.json').version"`

.PHONY: test tag<commit_msg>Symlink fixing task<commit_after>COFFEE = $(shell find src -name "*.coffee")
JS = $(COFFEE:src%.coffee=lib%.js)

all: bin/wach-watchdir $(JS)

lib/%.js : src/%.coffee
	./node_modules/.bin/coffee \
		--compile \
		--lint \
		--output lib $<

bin/wach-watchdir: src/watchdir.c
	clang \
		-Wall \
		-framework CoreServices \
		-o $@ $<

test : test-support

test-support :
	./node_modules/.bin/mocha test/support_test --ui qunit --bail --colors

tag:
	git tag v`coffee -e "console.log JSON.parse(require('fs').readFileSync 'package.json').version"`

# ---

# Only useful if you use dropbox to keep this folder in sync between two
# machines
fix-symlinks :
	cd node_modules/.bin && rm -rf * && ln -s ../*/bin/* .

.PHONY: test tag fix-symlinks
{'fraction_non_alphanumeric': 0.17901234567901234, 'fraction_numerical': 0.0, 'mean_word_length': 2.978527607361963, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4562802', 'n_tokens_mistral': 525, 'n_tokens_neox': 492, 'n_words': 115}