<commit_before>MDs = build/README.md build/LICENSE.md build/NOTICE.md
JSs = build/js/content.js build/js/options.js build/js/background.js build/js/help.js
CSSs = build/css/content.css build/css/options.css build/css/help.css
HTMLs = build/options.html build/background.html build/help.html

default: all

all: init $(HTMLs) $(JSs) $(CSSs) $(MDs) build/img build/vendor build/manifest.json
	@find build -iname '.*' -print0 | xargs -0 rm

dist: all
	@bin/dist

clean:
	rm -rf build

init:
	@mkdir -p build build/js build/css

build/vendor: vendor
	rm -rf $@
	cp -a $< $@
	rm -rf $@/{css/bootstrap{-theme*,.css*},js/bootstrap.js,js/class.js}

build/img: img
	rm -rf $@
	cp -a $< $@
	rm $@/*/README.md $@/logo/ingress.svg

build/manifest.json: manifest.json.dist
	cp $< $@

build/%.md: %.md
	cp $< $@

build/%.html: %.html
	grep -Ev '<script type="text\/javascript" src="js\/(log|communication|data\/(data|interpreter|merger|spreadsheets))\.js">' $< > $@

build/css/content.css: less/content.less less/variables.less less/general.less
	lessc -x $< $@

build/css/%.css: less/%.less less/variables.less less/general.less less/general_background.less
	lessc -x $< $@

build/js/help.js: coffee/help.coffee
	@bin/minify help help

build/js/content.js: coffee/communication.coffee coffee/log.coffee coffee/content/doOnce.coffee coffee/content/main.coffee coffee/content/mentions.coffee coffee/content/profile.coffee coffee/content/source.coffee
	@bin/minify content communication log content/doOnce content/mentions content/profile content/source content/main

build/js/options.js: coffee/communication.coffee coffee/log.coffee coffee/options.coffee
	@bin/minify options communication log options

build/js/background.js: coffee/log.coffee coffee/data/spreadsheets.coffee coffee/data/interpreter.coffee coffee/data/merger.coffee coffee/data/data.coffee coffee/background.coffee
	@bin/minify background log data/spreadsheets data/interpreter data/merger data/data background
<commit_msg>[project] added .PHONY to Makefile<commit_after>MDs = build/README.md build/LICENSE.md build/NOTICE.md
JSs = build/js/content.js build/js/options.js build/js/background.js build/js/help.js
CSSs = build/css/content.css build/css/options.css build/css/help.css
HTMLs = build/options.html build/background.html build/help.html

.PHONY: all init dist default clean

default: all

all: init $(HTMLs) $(JSs) $(CSSs) $(MDs) build/img build/vendor build/manifest.json
	@find build -iname '.*' -print0 | xargs -0 rm

dist: all
	@bin/dist

clean:
	rm -rf build

init:
	@mkdir -p build build/js build/css

build/vendor: vendor
	rm -rf $@
	cp -a $< $@
	rm -rf $@/{css/bootstrap{-theme*,.css*},js/bootstrap.js,js/class.js}

build/img: img
	rm -rf $@
	cp -a $< $@
	rm $@/*/README.md $@/logo/ingress.svg

build/manifest.json: manifest.json.dist
	cp $< $@

build/%.md: %.md
	cp $< $@

build/%.html: %.html
	grep -Ev '<script type="text\/javascript" src="js\/(log|communication|data\/(data|interpreter|merger|spreadsheets))\.js">' $< > $@

build/css/content.css: less/content.less less/variables.less less/general.less
	lessc -x $< $@

build/css/%.css: less/%.less less/variables.less less/general.less less/general_background.less
	lessc -x $< $@

build/js/help.js: coffee/help.coffee
	@bin/minify help help

build/js/content.js: coffee/communication.coffee coffee/log.coffee coffee/content/doOnce.coffee coffee/content/main.coffee coffee/content/mentions.coffee coffee/content/profile.coffee coffee/content/source.coffee
	@bin/minify content communication log content/doOnce content/mentions content/profile content/source content/main

build/js/options.js: coffee/communication.coffee coffee/log.coffee coffee/options.coffee
	@bin/minify options communication log options

build/js/background.js: coffee/log.coffee coffee/data/spreadsheets.coffee coffee/data/interpreter.coffee coffee/data/merger.coffee coffee/data/data.coffee coffee/background.coffee
	@bin/minify background log data/spreadsheets data/interpreter data/merger data/data background

{'fraction_non_alphanumeric': 0.14880358923230308, 'fraction_numerical': 0.0009970089730807576, 'mean_word_length': 4.294195250659631, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 7, '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': '2505822', 'n_tokens_mistral': 1481, 'n_tokens_neox': 1393, 'n_words': 286}