Like for pdns-recursor and also like in the meson build.
Necessary as Debian's cargo always puts the output files into target/<arch>/...
libdnsdist_rust.a: src/lib.rs src/helpers.rs Cargo.toml Cargo.lock
SYSCONFDIR=$(sysconfdir) $(CARGO) build --release $(RUST_TARGET) --target-dir=$(builddir)/target --manifest-path ${srcdir}/Cargo.toml --locked
- cp target/release/libdnsdist_rust.a libdnsdist_rust.a
- cp target/cxxbridge/dnsdist-rust/src/lib.rs.h lib.rs.h
- cp target/cxxbridge/rust/cxx.h cxx.h
+ cp target/$(RUSTC_TARGET_ARCH)/release/libdnsdist_rust.a libdnsdist_rust.a
+ cp target/$(RUSTC_TARGET_ARCH)/cxxbridge/dnsdist-rust/src/lib.rs.h lib.rs.h
+ cp target/$(RUSTC_TARGET_ARCH)/cxxbridge/rust/cxx.h cxx.h
clean-local:
rm -rf libdnsdist_rust.a lib.rs.h cxx.h target