-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
48 lines (34 loc) · 1.06 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
UI_PATH=ui
UI_SOURCES=$(wildcard $(UI_PATH)/*.ui)
UI_FILES=$(patsubst $(UI_PATH)/%.ui, $(UI_PATH)/ui_%.py, $(UI_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
pyuic5 -d -o $@ $<
$(RES_FILES): $(RES_PATH)/%_rc.py: $(RES_PATH)/%.qrc
pyrcc5 -o $@ $<
pep8:
@echo
@echo "-----------"
@echo "PEP8 issues"
@echo "-----------"
@pep8 --repeat --ignore=E203,E121,E122,E123,E124,E125,E126,E127,E128 --exclude 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 qconsolidate.zip qconsolidate -x \*.pyc \*.ts \*.ui \*.qrc \*.pro \*~ \*.git\* \*Makefile*
mv ../qconsolidate.zip .
upload:
plugin_uploader.py qconsolidate.zip