list:
  just --list

build_docs:
	doxygen Doxyfile

docs: build_docs
	python -m http.server -d docs/html

count:
	# you need download `tokei` it can download by cargo
	tokei libs runtime src -e tests

count-file:
	# you need download `tokei` it can download by cargo
	tokei libs runtime src -e tests --files

clean:
	cbuild clean

build:
	cbuild build -cclang --dev

build-install: build
	cp ./build/dev/scc ./scc

test-scc:
	# windows: (Get-Content a.txt -Raw) -replace '\x1b\[[0-9;]*[a-zA-Z]', '' | Set-Content clean.txt
	# linux: sed 's/\x1b\[[0-9;]*[a-zA-Z]//g' a.txt > clean.txt
	just clean
	just build-install
	just clean
	cbuild build -cscc

debug-scc:
	just clean
	just build-install
	just clean
	cbuild build -cscc --dev --record --dry-run
