Makefile
18 lines · 399 bytes
1WEECHAT_HOME ?= $(HOME)/.weechat
2PREFIX ?= $(WEECHAT_HOME)
3
4SOURCES := $(wildcard src/*.rs src/commands/*.rs)
5
6.PHONY: install install-dir lint
7
8target/debug/libmatrix.so: $(SOURCES)
9 cargo build
10
11install: install-dir target/debug/libmatrix.so
12 install -m644 target/debug/libmatrix.so $(DESTDIR)$(PREFIX)/plugins/matrix.so
13
14install-dir:
15 install -d $(DESTDIR)$(PREFIX)/plugins
16
17lint:
18 cargo clippy