From 3037674a4ce939268d15a84d0e51b6f675349948 Mon Sep 17 00:00:00 2001 From: Viktor Ashirov Date: May 14 2018 14:00:35 +0000 Subject: Issue 49685 - make clean fails if cargo is not installed Bug Description: `make clean` fails if cargo is not installed. Fix Description: Call `cargo clean` only when we enable Rust. https://pagure.io/389-ds-base/issue/49685 Reviewed by: mreynolds (Thanks!) --- diff --git a/Makefile.am b/Makefile.am index 32b7b2b..08438bb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -288,7 +288,9 @@ clean-local: -rm -rf dist -rm -rf $(abs_top_builddir)/html -rm -rf $(abs_top_builddir)/man +if RUST_ENABLE CARGO_TARGET_DIR=$(abs_top_builddir)/rs cargo clean --manifest-path=$(srcdir)/src/libsds/Cargo.toml +endif dberrstrs.h: Makefile perl $(srcdir)/ldap/servers/slapd/mkDBErrStrs.pl -i @db_incdir@ -o .