-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
72 lines (56 loc) · 2.17 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#/***************************************************************************
# PgTopoEditor
#
# Edit toolbar for PostGIS topology primitives (ISO SQL/MM based)
# -------------------
# begin : 2011-10-21
# copyright : (C) 2011-2015 by Sandro Santilli <[email protected]>
# email : [email protected]
# ***************************************************************************/
#
#/***************************************************************************
# * *
# * This program is free software; you can redistribute it and/or modify *
# * it under the terms of the GNU General Public License as published by *
# * the Free Software Foundation; either version 3 of the License, or *
# * (at your option) any later version. *
# * *
# ***************************************************************************/
# Makefile for a PyQGIS plugin
PLUGINNAME = pgtopoeditor
PY_FILES = pgtopoeditor.py pgtopoeditordialog.py __init__.py
ICONS = \
icons/healedge.png \
icons/topoedit.png \
icons/selringleft.png \
icons/seldanglingedge.png \
icons/gctgeom.png \
icons/selringright.png \
icons/remedge.png
EXTRAS = metadata.txt COPYING
UI_FILES = ui_pgtopoeditor.py
RESOURCE_FILES = \
resources.py
DISTFILES = $(PY_FILES) $(UI_FILES) $(RESOURCE_FILES) $(ICONS) $(EXTRAS)
default: compile
compile: $(UI_FILES) $(RESOURCE_FILES)
%.py : %.qrc
pyrcc5 -o $@ $<
%.py : %.ui
pyuic5 -o $@ $<
resources.py: $(ICONS)
# The deploy target only works on unix like operating system where
# the Python plugin directory is located at:
# $HOME/.qgis/python/plugins
deploy: compile
mkdir -p $(HOME)/.qgis/python/plugins/$(PLUGINNAME)
cp -vf $(DISTFILES) $(HOME)/.qgis/python/plugins/$(PLUGINNAME)
dist: compile
rm -f $(PLUGINNAME) # just in case
ln -s . $(PLUGINNAME)
( cd $(PLUGINNAME) && find $(DISTFILES); ) | sed 's@^@$(PLUGINNAME)/@' | zip $(PLUGINNAME).zip -@
rm -f $(PLUGINNAME)
clean:
rm -f $(PLUGINNAME).zip
rm -f *.pyc
rm -f resources.py ui_pgtopoeditor.py