forked from linz/QGIS-AIMS-Plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (39 loc) · 1.54 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
###### EDIT #####################
#Directory with ui and resource files
RESOURCE_DIR = .
#Directory for compiled resources
COMPILED_DIR = ./
#UI files to compile
UI_FILES = AimsUI/AimsClient/Gui/Ui_LineageDialog.ui AimsUI/AimsClient/Gui/Ui_ComfirmSelection.ui AimsUI/AimsClient/Gui/Ui_ReviewQueueWidget.ui AimsUI/AimsClient/Gui/Ui_QueueEditorWidget.ui AimsUI/AimsClient/Gui/Ui_AimsQueueWidget.ui AimsUI/AimsClient/Gui/Ui_EditFeatureDialog.ui
#Qt resource files to compile
RESOURCES = Resources.qrc
#pyuic4 and pyrcc4 binaries
PYUIC = pyuic4
PYRCC = pyrcc4
#################################
# DO NOT EDIT FOLLOWING
COMPILED_UI = $(UI_FILES:%.ui=$(COMPILED_DIR)/%.py)
COMPILED_RESOURCES = $(RESOURCES:%.qrc=$(COMPILED_DIR)/%.py)
all : resources ui
resources : $(COMPILED_RESOURCES)
ui : $(COMPILED_UI)
$(COMPILED_DIR)/%.py : $(RESOURCE_DIR)/%.ui
$(PYUIC) $< -o $@
$(COMPILED_DIR)/%.py : $(RESOURCE_DIR)/%.qrc
-$(PYRCC) $< -o $@
pylint:
@echo
@echo "-----------------"
@echo "Pylint violations"
@echo "-----------------"
@pylint --reports=n --rcfile=pylintrc . || true
# Run pep8 style checking
#http://pypi.python.org/pypi/pep8
pep8:
@echo
@echo "-----------"
@echo "PEP8 issues"
@echo "-----------"
@pep8 --repeat --ignore=E101,E201,E202,E203,E211,E225,E227,E226,E228,E231,E251,E261,E262,E293,W293,E121,E122,E123,E124,E125,E126,E127,E128,E501,E301,E302,E701,E702,E711,W291 --exclude pydev,resources.py,conf.py . || true
clean :
$(RM) $(COMPILED_UI) $(COMPILED_RESOURCES) $(COMPILED_UI:.py=.pyc) $(COMPILED_RESOURCES:.py=.pyc)