<commit_before>lssrc = $(shell find scripts/ -type f -name '*.ls')
jsobj = $(lssrc:.ls=.js)

packobj = app.js vendor.js
packflag = -d

csssrc = $(shell find styles/ -type f -name '*.styl')
cssobj = $(csssrc:.styl=.css)

htmlsrc = $(shell find . -maxdepth 1 -type f -name '*.pug')
htmlobj = $(htmlsrc:.pug=.html)

testsrc = $(shell find test/ -type f -name '*.ls')
testobj = $(testsrc:.ls=.js)

confsrc = $(shell find . -maxdepth 1 -type f -name '*.ls')
confobj = $(confsrc:.ls=.js)

releasedir = release/

.PHONY: all
all: compile pack

.PHONY: compile
compile: $(jsobj) $(cssobj) $(htmlobj)

.PHONY: config
config: $(confobj)

.PHONY: pack
pack: compile config
	webpack --progress $(packflag)

.PHONY: release
release: packflag = -p
release: all
	echo $(packflag)
	mkdir -p $(releasedir)
	cp --parents $(packobj) $(cssobj) $(htmlobj) $(releasedir)
	cd $(releasedir); zip -r9 ../release.zip *
	cd $(releasedir); tar -zcvf ../release.tar.gz *

.PHONY: watch
watch: config
	webpack --watch &
	while true; do make --quiet compile; sleep 1; done

$(packobj): compile config
	webpack

$(jsobj) $(testobj) $(confobj): %.js: %.ls
	lsc -pcb $< > $@
	echo -e '  \033[1;30mcompiled\033[0m $<'

$(cssobj): %.css: %.styl
	stylus $<

$(htmlobj): %.html: %.pug
	pug -n $@ -P $<

.PHONY: test
test: compile $(testobj)
	mocha

.PHONY: clean
clean:
	@rm -vf $(jsobj)
	@rm -vf $(cssobj)
	@rm -vf $(testobj)
	@rm -vf $(htmlobj)
	@rm -vf $(confobj)
	@rm -vf $(packobj)
	@rm -vfr $(releasedir)
	@rm -vf release.zip release.tar.gz

<commit_msg>Change Makefile to be less verbose<commit_after>lssrc = $(shell find scripts/ -type f -name '*.ls')
jsobj = $(lssrc:.ls=.js)

packobj = app.js vendor.js
packflag = -d

csssrc = $(shell find styles/ -type f -name '*.styl')
cssobj = $(csssrc:.styl=.css)

htmlsrc = $(shell find . -maxdepth 1 -type f -name '*.pug')
htmlobj = $(htmlsrc:.pug=.html)

testsrc = $(shell find test/ -type f -name '*.ls')
testobj = $(testsrc:.ls=.js)

confsrc = $(shell find . -maxdepth 1 -type f -name '*.ls')
confobj = $(confsrc:.ls=.js)

releasedir = release/

.PHONY: all
all: compile pack

.PHONY: compile
compile: $(jsobj) $(cssobj) $(htmlobj)

.PHONY: config
config: $(confobj)

.PHONY: pack
pack: compile config
	webpack --progress $(packflag)

.PHONY: release
release: packflag = -p
release: all
	echo $(packflag)
	mkdir -p $(releasedir)
	cp --parents $(packobj) $(cssobj) $(htmlobj) $(releasedir)
	cd $(releasedir); zip -r9 ../release.zip *
	cd $(releasedir); tar -zcvf ../release.tar.gz *

.PHONY: watch
watch: config
	webpack --watch &
	while true; do make --quiet compile; sleep 1; done

$(packobj): compile config
	webpack

$(jsobj) $(testobj) $(confobj): %.js: %.ls
	lsc -pcb $< > $@
	@echo -e '  \033[1;30mcompiled\033[0m $<'

$(cssobj): %.css: %.styl
	stylus $<

$(htmlobj): %.html: %.pug
	pug -n $@ -P $<

.PHONY: test
test: compile $(testobj)
	mocha

.PHONY: clean
clean:
	@rm -vf $(jsobj)
	@rm -vf $(cssobj)
	@rm -vf $(testobj)
	@rm -vf $(htmlobj)
	@rm -vf $(confobj)
	@rm -vf $(packobj)
	@rm -vfr $(releasedir)
	@rm -vf release.zip release.tar.gz


{'fraction_non_alphanumeric': 0.19928245270711023, 'fraction_numerical': 0.0091324200913242, 'mean_word_length': 3.4708454810495626, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 5, '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': '385578', 'n_tokens_mistral': 1313, 'n_tokens_neox': 1258, 'n_words': 371}