run:
	RUST_BACKTRACE=1 RUST_LOG=debug cargo run -- \
		--source ../stacks/apps \
		--environment stage

lint:
	cargo +nightly clippy -- -Wclippy::pedantic

.PHONY: clean
clean:
	rm -rf stage prod

.PHONY: build
build: target/doc
	cargo build

target/doc:
	cargo doc

.PHONY: test
test:
	cargo test

# Run this before publishing, to make sure the publish will work.
.PHONY: prepublish
prepublish: test
	cargo publish --dry-run

.PHONY: publish
publish:
	verto
	cargo publish
