Makefile

6d621928b8759e14111cbdc261367a8dc7b788c4
weechat-matrix-rs/Makefile history · blame · raw

16 lines · 415 bytes

 1WEECHAT_HOME ?= $(HOME)/.weechat
 2PREFIX ?= $(WEECHAT_HOME)
 3
 4.PHONY: install install-dir lint
 5
 6target/debug/libmatrix.so: src/lib.rs src/server.rs src/room_buffer.rs src/commands/mod.rs src/config.rs
 7	cargo build
 8
 9install: install-dir target/debug/libmatrix.so
10	install -m644  target/debug/libmatrix.so $(DESTDIR)$(PREFIX)/plugins/matrix.so
11
12install-dir:
13	install -d $(DESTDIR)$(PREFIX)/plugins
14
15lint:
16	cargo clippy