summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2023-05-17 22:53:09 +0300
committerdefanor <defanor@uberspace.net>2023-05-17 22:53:09 +0300
commitae42bb94fd49a450690014b6039a812a251f64cd (patch)
tree70ce9b280c186839c1967132fe4c1a7ece0a3024
parentf0f947ac56f58ac5e047bdcafcdc8b9a1a1e34ee (diff)
Rebuild the Rust-based static library on source file changes
-rw-r--r--src/Makefile.am4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index c0c7073..de0a68f 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -44,9 +44,7 @@ noinst_LIBRARIES = librexmpp_rust.a
librexmpp_la_LIBADD += librexmpp_rust.a
librexmpp_la_LDFLAGS += -L. -lpthread -ldl
-# todo: setup it properly, to rebuild whenever the sources are
-# changed.
-librexmpp_rust.a:
+librexmpp_rust.a: $(librexmpp_rust_a_SOURCES)
rustc --crate-type=staticlib -o $@ $(librexmpp_rust_a_SOURCES)
else