all: server documentation documentation: doc/architecture.pdf @cargo doc --document-private-items --no-deps server: src/main.rs @cargo build release: src/main.rs @cargo build --release doc/architecture.pdf: doc/architecture.tex @latexmk -pdf doc/architecture.tex @if ! cmp --silent build/architecture.pdf doc/architecture.pdf; then \ cp build/architecture.pdf doc/architecture.pdf; \ echo "Updated"; \ fi clean: @cargo clean @rm -rf build 2>/dev/null