aboutsummaryrefslogblamecommitdiffhomepage
path: root/ci/Makefile
blob: b433ed20f9be17a2e1c308ce7df2b1aba9446998 (plain) (tree)
1
                                                                                                     

















                                                                
 




                                                                                                           




                                       
                              
all: build build-examples check-fmt check-clippy check-tests check-examples check-readme run-examples

build:
	cargo build

build-examples:
	cargo build --examples

check-fmt:
	cargo fmt --check

check-clippy:
	cargo clippy -- -Dwarnings -Aclippy::new_without_default

check-tests:
	cargo test

check-examples:
	cargo test --examples

check-readme:
	awk '/^```rust$$/,/^```$$/ { if (!($$1 ~ "^```")) { print } }' ../README.md > ../examples/readme.rs
	cargo run --example readme
	rm -f ../examples/readme.rs

run-examples:
	cargo run --example fib
	cargo run --example add
	cargo run --example tiny_vm
	cargo run --example tiny_vm jit
	cargo run --example bf