~tardypad/wee-most

ref: 6b8a0812847ffb4743801c8e8a99eed91dc03bcc wee-most/Makefile -rw-r--r-- 701 bytes
6b8a0812 — Damien Tardy-Panis Update plugin attributes 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.PHONY: install uninstall autoload

WEECHAT_DATA_DIR = $(HOME)/.local/share/weechat

SCRIPT_DIR = $(WEECHAT_DATA_DIR)/python

libs := $(patsubst wee_most/%.py, $(SCRIPT_DIR)/wee_most/%.py, \
	$(wildcard wee_most/*.py))

install: $(SCRIPT_DIR)/wee_most/ $(libs) $(SCRIPT_DIR)/wee_most.py

uninstall:
	rm $(SCRIPT_DIR)/wee_most/*
	rm $(SCRIPT_DIR)/wee_most.py
	rmdir $(SCRIPT_DIR)/wee_most

autoload:
	mkdir -p $(SCRIPT_DIR)/autoload
	ln -sf ../wee_most.py $(SCRIPT_DIR)/autoload/wee_most.py

$(SCRIPT_DIR)/wee_most/:
	install -d $(SCRIPT_DIR)/wee_most

$(SCRIPT_DIR)/wee_most.py: main.py
	install -m644 main.py $(SCRIPT_DIR)/wee_most.py

$(SCRIPT_DIR)/wee_most/%.py: wee_most/%.py
	install -m644 $< $@