bcachefs-tools
bcachefs-tools copied to clipboard
make clean does not remove rust binaries [patch included] [ 9fe08ba]
(particularly important with cross-compiling & experimenting with build-test-kernel in ktests): when running "make clean", the rust binaries are not removed. As such, when cleaning because build-test-kernel is running on another arch, the linker fails because the binaries are incompatible.
should be easy to fix... "rm -rf rust-src/target/release" @ make clean target does the job
edit
this patch should fix it:
--- a/Makefile
+++ b/Makefile
@@ -169,7 +169,7 @@ install: bcachefs
clean:
@echo "Cleaning all"
$(Q)$(RM) bcachefs libbcachefs.a tests/test_helper .version *.tar.xz $(OBJS) $(DEPS) $(DOCGENERATED)
- $(Q)$(RM) -rf rust-src/*/target
+ $(Q)$(RM) -rf rust-src/target/*
.PHONY: deb
deb: all