OFFLINE = 

all: test

sshca.html: sshca.subplot sshca.md subplot/sshca.yaml
	subplot docgen sshca.subplot -o sshca.html

check:
	cargo clippy ${OFFLINE} --all-targets -- -Dwarnings

build: check sshca.html
	cargo build ${OFFLINE} --all-targets
	cargo test ${OFFLINE} --all-targets
	cargo test ${OFFLINE} --doc
	cargo doc ${OFFLINE} --no-deps

test: build
	cargo test $(OFFLINE)
