-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (38 loc) · 776 Bytes
/
Copy pathMakefile
File metadata and controls
51 lines (38 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
BIN_DIR = ./bin
BIN = target/release/noise
default: deps build
auth:
@echo "Copy and paste the following in the terminal where you"
@echo "will be executing cargo commands:"
@echo
@echo ' eval $$(ssh-agent -s) && ssh-add'
@echo
build: cli
deps:
@cargo update
$(BIN_DIR):
mkdir -p $(BIN_DIR)
test:
@cargo test
cli: $(BIN_DIR)
@cargo build --release
@rm -f $(BIN_DIR)/*
@cargo install --path . --root .
run: cli
@$(BIN)
run-help: cli
@$(BIN) help
run-cave-help: cli
@$(BIN) cave --help
.PHONY: examples
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/*
publish:
@cargo publish