Commit 1c3a1dbc8c

1c3a1dbc8cc4509af03fdb3051ba765772a575a3

parent: d6f30f37d9

Unsigned

Damir Jelić <poljar@termina.org.uk> · 2019-11-09 10:27 UTC

Makefile: Small fixes for the install target.

Layout: unified · split

Cargo.toml +5 −4
@@ -1,22 +1,23 @@
1[package] 1[package]
2name = "weechat-rust-sample-plugin" 2name = "weechat-matrix"
3version = "0.1.0" 3version = "0.1.0"
4authors = ["Damir Jelić <poljar@termina.org.uk>"] 4authors = ["Damir Jelić <poljar@termina.org.uk>"]
5edition = "2018" 5edition = "2018"
6 6
7[lib] 7[lib]
8name = "weechat_matrix" 8name = "matrix"
9crate-type = ["dylib"] 9crate-type = ["dylib"]
10 10
11[dependencies] 11[dependencies]
12libc = "*" 12libc = "*"
13futures-preview = "0.3.0-alpha.18" 13futures-preview = "0.3.0-alpha.18"
14url = "*"
14tokio = "0.2.0-alpha.6" 15tokio = "0.2.0-alpha.6"
16async-std = { version = "0.99.11", features = [ "unstable" ] }
17pipe-channel = "*"
15 18
16matrix-nio = { path = "/home/poljar/werk/priv/nio-rust/" } 19matrix-nio = { path = "/home/poljar/werk/priv/nio-rust/" }
17 20
18weechat = { path = "/home/poljar/werk/misc/rust-weechat/weechat-rs" } 21weechat = { path = "/home/poljar/werk/misc/rust-weechat/weechat-rs" }
19weechat-sys = { path = "/home/poljar/werk/misc/rust-weechat/weechat-sys" } 22weechat-sys = { path = "/home/poljar/werk/misc/rust-weechat/weechat-sys" }
20async-std = { version = "0.99.11", features = [ "unstable" ] }
21async-task = { path = "/home/poljar/werk/misc/async-task" } 23async-task = { path = "/home/poljar/werk/misc/async-task" }
22pipe-channel = "*"
Makefile +3 −3
@@ -3,11 +3,11 @@ PREFIX ?= $(WEECHAT_HOME)
3 3
4.PHONY: install install-dir phony lint 4.PHONY: install install-dir phony lint
5 5
6target/debug/libweechat_matrix.so: src/lib.rs 6target/debug/libmatrix.so: src/lib.rs src/server.rs src/room_buffer.rs
7 cargo build 7 cargo build
8 8
9install: install-dir 9install: install-dir target/debug/libmatrix.so
10 install -m644 target/debug/libweechat_matrix.so $(DESTDIR)$(PREFIX)/plugins/weechat-matrix-rs.so 10 install -m644 target/debug/libmatrix.so $(DESTDIR)$(PREFIX)/plugins/matrix.so
11 11
12install-dir: 12install-dir:
13 install -d $(DESTDIR)$(PREFIX)/plugins 13 install -d $(DESTDIR)$(PREFIX)/plugins