forked from nextgis/qgis_qtiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (39 loc) · 1.25 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
UI_PATH=ui
UI_SOURCES=$(wildcard $(UI_PATH)/*.ui)
UI_FILES=$(patsubst $(UI_PATH)/%.ui, $(UI_PATH)/ui_%.py, $(UI_SOURCES))
LANG_PATH=i18n
LANG_SOURCES=$(wildcard $(LANG_PATH)/*.ts)
LANG_FILES=$(patsubst $(LANG_PATH)/%.ts, $(LANG_PATH)/%.qm, $(LANG_SOURCES))
RES_PATH=.
RES_SOURCES=$(wildcard $(RES_PATH)/*.qrc)
RES_FILES=$(patsubst $(RES_PATH)/%.qrc, $(RES_PATH)/%_rc.py, $(RES_SOURCES))
PRO_PATH=.
PRO_FILES=$(wildcard $(PRO_PATH)/*.pro)
ALL_FILES= ${RES_FILES} ${UI_FILES} ${LANG_FILES}
all: $(ALL_FILES)
ui: $(UI_FILES)
ts: $(PRO_FILES)
pylupdate4 -verbose $<
lang: $(LANG_FILES)
res: $(RES_FILES)
$(UI_FILES): $(UI_PATH)/ui_%.py: $(UI_PATH)/%.ui
pyuic4 -o $@ $<
$(LANG_FILES): $(LANG_PATH)/%.qm: $(LANG_PATH)/%.ts
lrelease $<
$(RES_FILES): $(RES_PATH)/%_rc.py: $(RES_PATH)/%.qrc
pyrcc4 -o $@ $<
pep8:
@echo
@echo "-----------"
@echo "PEP8 issues"
@echo "-----------"
@pep8 --repeat --ignore=E203,E121,E122,E123,E124,E125,E126,E127,E128 --exclude mbutils.py,resources_rc.py . || true
clean:
rm -f $(ALL_FILES)
find -name "*.pyc" -exec rm -f {} \;
rm -f *.zip
package:
cd .. && rm -f *.zip && zip -r qtiles.zip qtiles -x \*.pyc \*.ts \*.ui \*.qrc \*.pro \*~ \*.git\* \resources\* \*Makefile*
mv ../qtiles.zip .
upload:
plugin_uploaderNG.py qtiles.zip