Makefile 1.35 KB
Newer Older
1
debug: src/db_conn_postgres.rs
2
	RUST_BACKTRACE=1 cargo run --features 'watch debug' -- -a
3

4
5
6
pgdebug: src/db_conn_postgres.rs
	RUST_BACKTRACE=1 cargo run --features 'watch debug postgres' -- -a -D 'postgres://medal:medal@localhost/medal'

7
test: src/db_conn_postgres.rs
8
	RUST_BACKTRACE=1 cargo test --features 'complete debug'
9

10
release: src/db_conn_postgres.rs
11
	env OPENSSL_LIB_DIR=/usr/lib/x86_64-linux-gnu/ OPENSSL_INCLUDE_DIR=/usr/local/include OPENSSL_STATIC=yes cargo build --release --features 'server'
12

13
stricttest: src/db_conn_postgres.rs
14
15
	cargo test --features 'strict complete debug' --verbose

16
dynrelease: src/db_conn_postgres.rs
17
18
	cargo build --release --features 'server'

19
format: src/db_conn_postgres.rs
20
	cargo +nightly fmt
21

22
clippy: src/db_conn_postgres.rs
23
	cargo clippy --all-targets --features 'complete debug' -- -D warnings -A clippy::redundant_field_names -A clippy::useless_format -A clippy::let_and_return -A clippy::type_complexity -A clippy::option_map_unit_fn -A clippy::identity_conversion -A clippy::expect_fun_call -A clippy::option-as-ref-deref
24

25
26
src/db_conn_postgres.rs: src/db_conn_warning_header.txt src/db_conn_sqlite_new.header.rs src/db_conn_postgres.header.rs src/db_conn.base.rs
	cd src; ./generate_connectors.sh
27

28
29
30
doc: src/db_conn_postgres.rs
	cargo doc --no-deps	
	echo '<meta http-equiv="refresh" content="0; url=medal">' > target/doc/index.html