all: doc/architecture.pdf server 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: @rm -rf build 2>/dev/null