~reedwade/wee-matter

ref: adfdd6516b39eb05eb19a92a2d9bbbf244444683 wee-matter/Makefile -rw-r--r-- 844 bytes
adfdd651Reed Wade fix a bug when download file fail 1 year, 3 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
29
30
.PHONY: install run-dev

WEECHAT_HOME ?= $(HOME)/.weechat

libs := $(patsubst wee_matter/%.py, $(WEECHAT_HOME)/python/wee_matter/%.py, \
	$(wildcard wee_matter/*.py))

install: $(WEECHAT_HOME)/python/wee_matter/ $(libs) $(WEECHAT_HOME)/python/wee_matter.py

uninstall:
	rm $(WEECHAT_HOME)/python/wee_matter/*
	rm $(WEECHAT_HOME)/python/wee_matter.py
	rmdir $(WEECHAT_HOME)/python/wee_matter

.weechat:
	mkdir -p .weechat/python/autoload
	ln -s ../wee_matter.py .weechat/python/autoload/wee_matter.py

run-dev: .weechat
	make install WEECHAT_HOME=.weechat
	weechat -d .weechat

$(WEECHAT_HOME)/python/wee_matter/:
	install -d $(WEECHAT_HOME)/python/wee_matter

$(WEECHAT_HOME)/python/wee_matter.py: main.py
	install -m644 main.py $(WEECHAT_HOME)/python/wee_matter.py

$(WEECHAT_HOME)/python/wee_matter/%.py: wee_matter/%.py
	install -m644 $< $@