Fix build dependencies

Incremental builds are fast again

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2023-03-19 15:32:43 -04:00
parent eb13ae8d5e
commit d22c79d2ff

View File

@ -132,8 +132,8 @@ libbcachefs.a: $(filter-out ./tests/%.o, $(OBJS))
@echo " [AR] $@" @echo " [AR] $@"
$(Q)ar -rc $@ $+ $(Q)ar -rc $@ $+
RUST_SRCS=$(shell find rust-src/ -type f -iname '*.rs') RUST_SRCS=$(shell find rust-src/src rust-src/bch_bindgen/src -type f -iname '*.rs')
rust-src/target/release/libbcachefs_rust.a: libbcachefs.a $(RUST_SRCS) rust-src/target/release/libbcachefs_rust.a: $(RUST_SRCS)
$(CARGO_BUILD) --manifest-path rust-src/Cargo.toml $(CARGO_BUILD) --manifest-path rust-src/Cargo.toml
tests/test_helper: $(filter ./tests/%.o, $(OBJS)) tests/test_helper: $(filter ./tests/%.o, $(OBJS))