-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (24 loc) · 809 Bytes
/
Makefile
File metadata and controls
32 lines (24 loc) · 809 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
.DEFAULT_GOAL := build
include tests/Makefile
include src/bin/patroni_proxy/Makefile
vendor.tar.gz:
cargo vendor ./vendor
tar czf vendor.tar.gz ./vendor
@rm -rf vendor
vendor-licenses.txt:
cd /tmp && cargo install cargo-license
cargo license --json > ./vendor-licenses.json
python ./pkg/make_vendor_license.py ./vendor-licenses.json ./vendor-licenses.txt
build:
cargo build --release
install: build
mkdir -p $(DESTDIR)/usr/bin/
install -c -m 755 ./target/release/pg_doorman $(DESTDIR)/usr/bin/
test:
cargo test --lib
clippy:
cargo clippy -- --deny "warnings"
generate:
cargo run --bin pg_doorman -- generate --reference -o pg_doorman.toml
cargo run --bin pg_doorman -- generate --reference -o pg_doorman.yaml
cargo run --bin pg_doorman -- generate-docs -o documentation/en/src/reference