Makefile

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

16 lines · 419 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/executor.rs src/commands.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