From: Kent Overstreet Date: Sun, 19 Mar 2023 19:32:43 +0000 (-0400) Subject: Fix build dependencies X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=d22c79d2fff10dd782caf5668fd019387914a5bb;p=bcachefs-tools-debian Fix build dependencies Incremental builds are fast again Signed-off-by: Kent Overstreet --- diff --git a/Makefile b/Makefile index cd85880..8a85e01 100644 --- a/Makefile +++ b/Makefile @@ -132,8 +132,8 @@ libbcachefs.a: $(filter-out ./tests/%.o, $(OBJS)) @echo " [AR] $@" $(Q)ar -rc $@ $+ -RUST_SRCS=$(shell find rust-src/ -type f -iname '*.rs') -rust-src/target/release/libbcachefs_rust.a: libbcachefs.a $(RUST_SRCS) +RUST_SRCS=$(shell find rust-src/src rust-src/bch_bindgen/src -type f -iname '*.rs') +rust-src/target/release/libbcachefs_rust.a: $(RUST_SRCS) $(CARGO_BUILD) --manifest-path rust-src/Cargo.toml tests/test_helper: $(filter ./tests/%.o, $(OBJS))