Add makefile.
This commit is contained in:
parent
51308d4af0
commit
0663fc1470
1 changed files with 15 additions and 0 deletions
15
Makefile
Normal file
15
Makefile
Normal 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 $< $@
|
Loading…
Reference in a new issue