<commit_before>.PHONY: folders debug
SHELL = /bin/bash

SRC=src
DIST=dist

debug: folders shaders update page art
	sh files.sh debug
	tsc @files.txt --target ES5 --sourceMap --out $(DIST)/app.js
	rm files.txt

release: folders shaders update page art
	pushd ../../ && make lib && popd
	cp ../../dist/robinson.d.ts .
	cp ../../dist/robinson.js $(DIST)/
	sh files.sh
	tsc @files.txt --target ES5 --out $(DIST)/app.js
	rm files.txt robinson.d.ts

shaders:
	cp -rf ../../dist/shaders $(DIST)/

page:
	cp app.html dist/

update:
	pushd vendor && sh update.sh && popd
	cp vendor/*.js $(DIST)/vendor/

folders:
	mkdir -p $(DIST)
	mkdir -p $(DIST)/vendor

art:
	cp -rf art/* dist/<commit_msg>[WEB] release copies output to Robinson-web-sample<commit_after>.PHONY: folders debug clean release shaders page update art
SHELL = /bin/bash

SRC=src
DIST=dist

PUBLIC_DIST=../../../../Robinson-web-samples

SAMPLE_NAME=$(shell basename $(shell pwd))

debug: folders shaders update page art
	sh files.sh debug
	tsc @files.txt --target ES5 --sourceMap --out $(DIST)/app.js
	rm files.txt

clean:
	rm -rf $(DIST)

release: clean folders shaders update page art
	pushd ../../ && make lib && popd
	cp ../../dist/robinson.d.ts .
	cp ../../dist/robinson.js $(DIST)/
	sh files.sh
	tsc @files.txt --target ES5 --out $(DIST)/app.js
	rm files.txt robinson.d.ts
	if [ -d $(PUBLIC_DIST) ]; then mkdir -p $(PUBLIC_DIST)/$(SAMPLE_NAME) && cp -rf $(DIST)/* $(PUBLIC_DIST)/$(SAMPLE_NAME)/; fi;

shaders:
	cp -rf ../../dist/shaders $(DIST)/

page:
	cp app.html dist/

update:
	pushd vendor && sh update.sh && popd
	cp vendor/*.js $(DIST)/vendor/

folders:
	mkdir -p $(DIST)
	mkdir -p $(DIST)/vendor

art:
	cp -rf art/* dist/
{'fraction_non_alphanumeric': 0.178698224852071, 'fraction_numerical': 0.002366863905325444, 'mean_word_length': 2.9143518518518516, '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': '7124370', 'n_tokens_mistral': 676, 'n_tokens_neox': 628, 'n_words': 194}