weechat-matrix/Makefile
poljar (Damir Jelić) 416e154359 Fix tests for python2.
2018-03-18 23:31:57 +01:00

22 lines
455 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:
python3 -m pytest
python2 -m pytest