BIN_DIR = ./bin BIN = target/release/noise default: build build: cli $(BIN_DIR): mkdir -p $(BIN_DIR) cli: $(BIN_DIR) @cargo build --release @rm $(BIN_DIR)/* @cargo install --path . --root . run: cli @$(BIN) run-help: cli @$(BIN) help run-cave-help: cli @$(BIN) cave --help examples: @cargo run --example=ascii-caves @cargo run --example=ascii-land-sea @cargo run --example=ascii-levels @cargo run --example=caves @cargo run --example=levels clean: @cargo clean @rm -rf example_images/* .PHONY: examples