<commit_before>#http://www.gnu.org/prep/standards/html_node/Standard-Targets.html#Standard-Targets

all: mapnik.node

./node_modules/mapnik-vector-tile:
	npm install mapnik-vector-tile sphericalmercator mocha

./node_modules/.bin/node-pre-gyp:
	npm install node-pre-gyp

mapnik.node: ./node_modules/.bin/node-pre-gyp ./node_modules/mapnik-vector-tile
	./node_modules/.bin/node-pre-gyp build --loglevel=silent

clean:
	@rm -rf ./build
	rm -rf lib/binding
	rm ./test/tmp/*
	echo > ./test/tmp/placeholder.txt

grind:
	valgrind --leak-check=full node node_modules/.bin/_mocha

rebuild:
	@make clean
	@./configure<commit_msg>simplify makefile wrapper<commit_after>#http://www.gnu.org/prep/standards/html_node/Standard-Targets.html#Standard-Targets

all: mapnik.node

./node_modules:
	npm install --build-from-source

mapnik.node: ./node_modules
	./node_modules/.bin/node-pre-gyp build --loglevel=silent

verbose:
	./node_modules/.bin/node-pre-gyp rebuild --loglevel=verbose

clean:
	@rm -rf ./build
	rm -rf lib/binding
	rm ./test/tmp/*
	rm -rf ./node_modules
	echo > ./test/tmp/placeholder.txt

grind:
	valgrind --leak-check=full node node_modules/.bin/_mocha

rebuild:
	@make clean
{'fraction_non_alphanumeric': 0.14783347493627869, 'fraction_numerical': 0.0, 'mean_word_length': 3.75, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5403556', 'n_tokens_mistral': 455, 'n_tokens_neox': 444, 'n_words': 78}