Joel Galenson | 2370d12 | 2020-10-12 16:02:26 -0700 | [diff] [blame] | 1 | default: build |
2 | hard: test | ||||
3 | |||||
4 | CRATE = weak_table | ||||
5 | REPO = weak-table-rs | ||||
6 | |||||
7 | build: | ||||
8 | clear | ||||
9 | cargo build | ||||
10 | make doc | ||||
11 | |||||
12 | clippy: | ||||
13 | rustup run nightly cargo build --features=clippy | ||||
14 | |||||
15 | doc: | ||||
16 | cargo doc | ||||
17 | echo "<meta http-equiv='refresh' content='0;url=$(CRATE)/'>" > target/doc/index.html | ||||
18 | |||||
19 | test: | ||||
20 | clear | ||||
21 | cargo test | ||||
22 | |||||
23 | upload-doc: | ||||
24 | make doc | ||||
25 | ghp-import -n target/doc | ||||
26 | git push -f https://github.com/tov/$(REPO).git gh-pages |