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 @@
11[package]
2name = "weechat-rust-sample-plugin"
2name = "weechat-matrix"
33version = "0.1.0"
44authors = ["Damir Jelić <poljar@termina.org.uk>"]
55edition = "2018"
66
77[lib]
8name = "weechat_matrix"
8name = "matrix"
99crate-type = ["dylib"]
1010
1111[dependencies]
1212libc = "*"
1313futures-preview = "0.3.0-alpha.18"
14url = "*"
1415tokio = "0.2.0-alpha.6"
16async-std = { version = "0.99.11", features = [ "unstable" ] }
17pipe-channel = "*"
1518
1619matrix-nio = { path = "/home/poljar/werk/priv/nio-rust/" }
1720
1821weechat = { path = "/home/poljar/werk/misc/rust-weechat/weechat-rs" }
1922weechat-sys = { path = "/home/poljar/werk/misc/rust-weechat/weechat-sys" }
20async-std = { version = "0.99.11", features = [ "unstable" ] }
2123async-task = { path = "/home/poljar/werk/misc/async-task" }
22pipe-channel = "*"
Makefile +3 −3
@@ -3,11 +3,11 @@ PREFIX ?= $(WEECHAT_HOME)
33
44.PHONY: install install-dir phony lint
55
6target/debug/libweechat_matrix.so: src/lib.rs
6target/debug/libmatrix.so: src/lib.rs src/server.rs src/room_buffer.rs
77 cargo build
88
9install: install-dir
10 install -m644 target/debug/libweechat_matrix.so $(DESTDIR)$(PREFIX)/plugins/weechat-matrix-rs.so
9install: install-dir target/debug/libmatrix.so
10 install -m644 target/debug/libmatrix.so $(DESTDIR)$(PREFIX)/plugins/matrix.so
1111
1212install-dir:
1313 install -d $(DESTDIR)$(PREFIX)/plugins