aboutsummaryrefslogtreecommitdiff
path: root/src/rust/tor_rust/include.am
blob: 90f37a9f1bf4c3b8ed7b510c09be6615e2275891 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
EXTRA_DIST +=\
	src/rust/tor_rust/Cargo.toml \
	src/rust/tor_rust/lib.rs

src/rust/target/release/@TOR_RUST_STATIC_NAME@: FORCE
	( cd "$(abs_top_srcdir)/src/rust/tor_rust" ; \
		CARGO_TARGET_DIR="$(abs_top_builddir)/src/rust/target" \
		CARGO_HOME="$(abs_top_builddir)/src/rust" \
		$(CARGO) build --release --quiet $(CARGO_ONLINE) )

distclean-rust:
	( cd "$(abs_top_srcdir)/src/rust/tor_rust" ; \
		CARGO_TARGET_DIR="$(abs_top_builddir)/src/rust/target" \
		CARGO_HOME="$(abs_top_builddir)/src/rust" \
		$(CARGO) clean --quiet $(CARGO_ONLINE) )
	rm -rf "$(abs_top_builddir)/src/rust/registry"

if USE_RUST
build-rust: src/rust/target/release/@TOR_RUST_STATIC_NAME@
else
build-rust:
endif

FORCE: