SOURCES := $(shell find . -name "*.rs" -print) Cargo.toml BIN := target/release/librocketchat.so $(BIN): $(SOURCES) cargo build --release cp $(BIN) ~/.weechat/plugins/rocketchat.so