/ Makefile
Makefile
 1  AMBIENT_IMAGE = /scratch/ambient-images/ambient-boot.qcow2
 2  TARGET = x86_64-unknown-linux-musl
 3  TESTS = 
 4  
 5  all: test doc
 6  
 7  build:
 8  	cargo fmt -- --check
 9  	cargo deny check
10  	cargo clippy --all-targets -- -D warnings
11  	cargo build --all-targets --target $(TARGET)
12  	subplot docgen ambient.subplot -o ambient.html
13  	subplot codegen ambient.subplot -o test.py
14  
15  test: build
16  	cargo test
17  	rm -f test.log
18  	bash test.sh "$(AMBIENT_IMAGE)" "$(TARGET)" $(TESTS)
19  
20  .PHONY: doc
21  doc: ambient.html
22  	make -C doc
23  
24  ambient.html: ambient.subplot ambient.md ambient.yaml
25  	subplot docgen ambient.subplot -o ambient.html
26  
27  semver:
28  	cargo semver-checks