bcachefs-tools icon indicating copy to clipboard operation
bcachefs-tools copied to clipboard

make clean does not remove rust binaries [patch included] [ 9fe08ba]

Open jpsollie opened this issue 1 year ago • 0 comments

(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

jpsollie avatar Sep 19 '23 06:09 jpsollie