rust: make clean fixups

For make clean, only remove gen/ if cbindgen is available.
This prevents make clean from remove gen when the headers
were bundled, but cbindgen is not available to remove them.

Unconditionally remove gen and vendor in maintainerclean.
pull/4501/head
Jason Ish 6 years ago
parent 0a1d2fcec3
commit 1e741641a6

@ -43,10 +43,16 @@ else
endif
clean-local:
-rm -rf target gen
rm -rf target
if HAVE_CBINDGEN
rm -rf gen
endif
distclean-local:
rm -f Cargo.lock
distclean-local: clean-local
rm -rf vendor gen Cargo.lock
maintainerclean-local:
rm -rf vendor gen
check:
CARGO_HOME="$(CARGO_HOME)" @rustup_home@ \

Loading…
Cancel
Save