weechat-matrix/Makefile

16 lines
368 B
Makefile
Raw Normal View History

2018-01-30 10:56:29 +01:00
.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 $< $@