Commit 3037674 Issue 49685 - make clean fails if cargo is not installed

1 file Authored and Committed by vashirov 11 days ago
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!)

    
 1 @@ -288,7 +288,9 @@
 2   »       -rm -rf dist
 3   »       -rm -rf $(abs_top_builddir)/html
 4   »       -rm -rf $(abs_top_builddir)/man
 5 + if RUST_ENABLE
 6   »       CARGO_TARGET_DIR=$(abs_top_builddir)/rs cargo clean --manifest-path=$(srcdir)/src/libsds/Cargo.toml
 7 + endif
 8   
 9   dberrstrs.h: Makefile
10   »       perl $(srcdir)/ldap/servers/slapd/mkDBErrStrs.pl -i @db_incdir@ -o .