Add makefile.

This commit is contained in:
poljar (Damir Jelić) 2018-01-30 10:56:29 +01:00
parent 51308d4af0
commit 0663fc1470

15
Makefile Normal file
View file

@ -0,0 +1,15 @@
.PHONY: install install-lib
WEECHAT_HOME ?= $(HOME)/.weechat
PREFIX ?= $(WEECHAT_HOME)
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)
$(DESTDIR)$(PREFIX)/python/matrix/%.py: matrix/%.py
install -Dm644 $< $@