Makefile

bea2e3f5ba2f79eca8abdce49df42b84675b1261
weechat-matrix-rs/Makefile history · blame · raw

16 lines · 417 bytes

 1WEECHAT_HOME ?= $(HOME)/.weechat
 2PREFIX ?= $(WEECHAT_HOME)
 3
 4.PHONY: install install-dir phony lint
 5
 6target/debug/libmatrix.so: src/lib.rs src/server.rs src/room_buffer.rs src/commands.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