Makefile

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

17 lines · 356 bytes

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