forked from gioman/gioman_processing_circuitscape
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (24 loc) · 739 Bytes
/
Makefile
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
31
32
PLUGIN_NAME=processing_circuitscape
LANG_PATH=i18n
LANG_SOURCES=$(wildcard $(LANG_PATH)/*.ts)
LANG_FILES=$(patsubst $(LANG_PATH)/%.ts, $(LANG_PATH)/%.qm, $(LANG_SOURCES))
PRO_PATH=.
PRO_FILES=$(wildcard $(PRO_PATH)/*.pro)
ts: $(PRO_FILES)
pylupdate5 -verbose $<
qm: $(LANG_SOURCES)
lrelease $<
pep8:
@echo
@echo "-----------"
@echo "PEP8 issues"
@echo "-----------"
@pep8 --repeat --ignore=E203,E121,E122,E123,E124,E125,E126,E127,E128 . || true
clean:
find -name "*.qm" -exec rm -r {} \;
find -name "__pycache__" -type d -exec rm -r {} \; -prune
rm -f $(PLUGIN_NAME).zip
package: clean ts qm
git archive -9 --prefix=$(PLUGIN_NAME)/ --output=$(PLUGIN_NAME).zip HEAD
upload: package
plugin_uploader.py $(PLUGIN_NAME).zip