From 0663fc1470cd96cbd38139c7f18c39eeacf2a128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?poljar=20=28Damir=20Jeli=C4=87=29?= Date: Tue, 30 Jan 2018 10:56:29 +0100 Subject: [PATCH] Add makefile. --- Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..45f1eba --- /dev/null +++ b/Makefile @@ -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 $< $@