weechat-matrix/Makefile
2018-03-02 22:59:43 +01:00

21 lines
438 B
Makefile

.PHONY: install install-lib phony test
WEECHAT_HOME ?= $(HOME)/.weechat
PREFIX ?= $(WEECHAT_HOME)
PYTHON ?= python
lib := $(patsubst matrix/%.py, $(DESTDIR)$(PREFIX)/python/matrix/%.py, \
$(wildcard matrix/*.py))
install: install-lib
install -Dm644 main.py $(DESTDIR)$(PREFIX)/python/matrix.py
install-lib: $(lib)
phony:
$(DESTDIR)$(PREFIX)/python/matrix/%.py: matrix/%.py phony
install -Dm644 $< $@
test:
$(PYTHON) -m pytest