-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (22 loc) · 880 Bytes
/
Makefile
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
ROBBOT_VERSION := `git describe --tags`
ROBBOT_BUILT := `date -u +%FT%T%z`
CARGO := cargo
build:
ROBBOT_VERSION=${ROBBOT_VERSION} ROBBOT_BUILT=${ROBBOT_BUILT} $(CARGO) build --release
fmt:
cargo fmt --all -- --check
doc:
RUSTDOCFLAGS="-Dwarnings" cargo doc --no-deps --all-features
clippy:
cargo clippy --all-targets --all-features -- -D warnings
test:
cargo test
test-all: fmt doc clippy test
# Build Robbot against the current version of libc6 that comes
# with the debian buster release.
debian-buster:
docker run --rm --user "$$(id -u)":"$$(id -g)" -v "$$PWD":/usr/share/robbot -w /usr/share/robbot rust:buster make build
# Build Robbot against the current version of libc6 that comes
# with the debian bullseye release.
debian-bullseye:
docker run --rm --user "$$(id -u)":"$$(id -g)" -v "$$PWD":/usr/share/robbot -w /usr/share/robbot rust:bullseye make build