Make distcleancheck pass with --enable-rust

This commit is contained in:
Nick Mathewson
2017-10-27 12:35:13 -04:00
parent 3cf863df1c
commit 3a364529a4
2 changed files with 12 additions and 0 deletions
+5
View File
@@ -246,3 +246,8 @@ mostlyclean-local:
clean-local:
rm -rf $(top_builddir)/src/rust/target
rm -rf $(top_builddir)/src/rust/.cargo/registry
if USE_RUST
distclean-local: distclean-rust
endif
+7
View File
@@ -8,4 +8,11 @@ src/rust/target/release/@TOR_RUST_STATIC_NAME@: FORCE
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"
FORCE: