Commit 0471362836
Unsigned
Layout: unified · split
Makefile +5 −5
| @@ -1,6 +1,6 @@ | |||
| 1 | XDG_CONFIG_HOME ?= $(HOME)/.config | 1 | # See https://weechat.org/files/doc/weechat/stable/weechat_user.en.html#xdg_directories |
| 2 | WEECHAT_HOME ?= $(XDG_CONFIG_HOME)/weechat | 2 | XDG_DATA_HOME ?= $(HOME)/.local/share |
| 3 | PREFIX ?= $(WEECHAT_HOME) | 3 | WEECHAT_DATA_DIR ?= $(XDG_DATA_HOME)/weechat |
| 4 | 4 | ||
| 5 | SOURCES := $(wildcard src/*.rs src/commands/*.rs Cargo.lock) | 5 | SOURCES := $(wildcard src/*.rs src/commands/*.rs Cargo.lock) |
| 6 | 6 | ||
| @@ -10,10 +10,10 @@ target/debug/libmatrix.so: $(SOURCES) | |||
| 10 | cargo build | 10 | cargo build |
| 11 | 11 | ||
| 12 | install: install-dir target/debug/libmatrix.so | 12 | install: install-dir target/debug/libmatrix.so |
| 13 | install -m644 target/debug/libmatrix.so $(DESTDIR)$(PREFIX)/plugins/matrix.so | 13 | install -m644 target/debug/libmatrix.so $(DESTDIR)$(WEECHAT_DATA_DIR)/plugins/matrix.so |
| 14 | 14 | ||
| 15 | install-dir: | 15 | install-dir: |
| 16 | install -d $(DESTDIR)$(PREFIX)/plugins | 16 | install -d $(DESTDIR)$(WEECHAT_DATA_DIR)/plugins |
| 17 | 17 | ||
| 18 | lint: | 18 | lint: |
| 19 | cargo clippy | 19 | cargo clippy |