<commit_before>#

UGLIFY = ./node_modules/uglify-js/bin/uglifyjs
JS_BEAUTIFIER = $(UGLIFY) -b -i 2 -nm -ns
JS_COMPILER = $(UGLIFY)
CSSO = ./node_modules/csso/bin/csso
CSS_COMPILER = $(CSSO)
install_root ?= build

all: \
	turbo.js \
	turbo.min.js \
	turbo.css \
	turbo.min.css \
	turbo.map.js \
	turbo.map.min.js

.INTERMEDIATE turbo.js: \
	libs/CodeMirror/lib/codemirror.js \
	libs/CodeMirror/mode/javascript/javascript.js \
	libs/CodeMirror/mode/xml/xml.js \
	libs/CodeMirror/mode/clike/clike.js \
	libs/CodeMirror/lib/util/multiplex.js \
	libs/CodeMirror/lib/util/closetag.js \
	libs/locationfilter/src/locationfilter.js \
	libs/GeoJsonNoVanish.js \
	libs/OSM4Leaflet.js \
	libs/misc.js \
	libs/html2canvas/html2canvas.patched.js \
	libs/html2canvas/jquery.plugin.html2canvas.js \
	libs/canvg/rgbcolor.js \
	libs/canvg/canvg.js \
	settings.js \
	i18n.js \
	overpass.js \
	ide.js

turbo.js: Makefile
	@rm -f $@
	cat $(filter %.js,$^) > $@

.INTERMEDIATE turbo.map.js: \
	libs/GeoJsonNoVanish.js \
	libs/OSM4Leaflet.js \
	overpass.js \
	map.js

turbo.map.js: Makefile
	@rm -f $@
	cat $(filter %.js,$^) > $@

%.min.js: %.js Makefile
	@rm -f $@
	$(JS_COMPILER) $< -c -m -o $@

.INTERMEDIATE turbo.css: \
	libs/CodeMirror/lib/codemirror.css \
	libs/locationfilter/src/locationfilter.css \
	default.css

turbo.css: Makefile
	@rm -f $@
	cat $(filter %.css,$^) > $@

turbo.min.css: turbo.css Makefile
	@rm -f $@
	$(CSS_COMPILER) $< $@

install: all
	mkdir -p $(install_root)
	cp turbo.js turbo.min.js $(install_root)
	cp turbo.map.js turbo.map.min.js $(install_root)
	cp turbo.css turbo.min.css $(install_root)
	cp compact.css $(install_root)<commit_msg>removed (for now) unneed source file for turbo.map.js<commit_after>#

UGLIFY = ./node_modules/uglify-js/bin/uglifyjs
JS_BEAUTIFIER = $(UGLIFY) -b -i 2 -nm -ns
JS_COMPILER = $(UGLIFY)
CSSO = ./node_modules/csso/bin/csso
CSS_COMPILER = $(CSSO)
install_root ?= build

all: \
	turbo.js \
	turbo.min.js \
	turbo.css \
	turbo.min.css \
	turbo.map.js \
	turbo.map.min.js

.INTERMEDIATE turbo.js: \
	libs/CodeMirror/lib/codemirror.js \
	libs/CodeMirror/mode/javascript/javascript.js \
	libs/CodeMirror/mode/xml/xml.js \
	libs/CodeMirror/mode/clike/clike.js \
	libs/CodeMirror/lib/util/multiplex.js \
	libs/CodeMirror/lib/util/closetag.js \
	libs/locationfilter/src/locationfilter.js \
	libs/GeoJsonNoVanish.js \
	libs/OSM4Leaflet.js \
	libs/misc.js \
	libs/html2canvas/html2canvas.patched.js \
	libs/html2canvas/jquery.plugin.html2canvas.js \
	libs/canvg/rgbcolor.js \
	libs/canvg/canvg.js \
	settings.js \
	i18n.js \
	overpass.js \
	ide.js

turbo.js: Makefile
	@rm -f $@
	cat $(filter %.js,$^) > $@

.INTERMEDIATE turbo.map.js: \
	libs/OSM4Leaflet.js \
	overpass.js \
	map.js

turbo.map.js: Makefile
	@rm -f $@
	cat $(filter %.js,$^) > $@

%.min.js: %.js Makefile
	@rm -f $@
	$(JS_COMPILER) $< -c -m -o $@

.INTERMEDIATE turbo.css: \
	libs/CodeMirror/lib/codemirror.css \
	libs/locationfilter/src/locationfilter.css \
	default.css

turbo.css: Makefile
	@rm -f $@
	cat $(filter %.css,$^) > $@

turbo.min.css: turbo.css Makefile
	@rm -f $@
	$(CSS_COMPILER) $< $@

install: all
	mkdir -p $(install_root)
	cp turbo.js turbo.min.js $(install_root)
	cp turbo.map.js turbo.map.min.js $(install_root)
	cp turbo.css turbo.min.css $(install_root)
	cp compact.css $(install_root)
{'fraction_non_alphanumeric': 0.16772438803263826, 'fraction_numerical': 0.005439709882139619, 'mean_word_length': 3.2111959287531806, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '7158214', 'n_tokens_mistral': 1581, 'n_tokens_neox': 1449, 'n_words': 229}