-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (39 loc) · 1.84 KB
/
Makefile
File metadata and controls
51 lines (39 loc) · 1.84 KB
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
#/***************************************************************************
# ShellDB
#
# Pass selected QGIS data to a shall script
# -------------------
# begin : 2012-01-31
# copyright : (C) 2012 by Spatial Focus Inc
# email : cshapiro@spatialfocus.com
# ***************************************************************************/
#
#/***************************************************************************
# * *
# * 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 2 of the License, or *
# * (at your option) any later version. *
# * *
# ***************************************************************************/
# Makefile for a PyQGIS plugin
PLUGINNAME = shelldb
PY_FILES = shelldb.py shelldbdialog.py __init__.py
EXTRAS = configIcon.png runIcon.png
UI_FILES = ui_shelldb.py ui_rundialog.py shelldbdialogbase.py
RESOURCE_FILES = resources.py
default: compile
compile: $(UI_FILES) $(RESOURCE_FILES)
%.py : %.qrc
pyrcc4 -o $@ $<
%.py : %.ui
pyuic4 -o $@ $<
# 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 $(PY_FILES) $(HOME)/.qgis/python/plugins/$(PLUGINNAME)
cp -vf $(UI_FILES) $(HOME)/.qgis/python/plugins/$(PLUGINNAME)
cp -vf $(RESOURCE_FILES) $(HOME)/.qgis/python/plugins/$(PLUGINNAME)
cp -vf $(EXTRAS) $(HOME)/.qgis/python/plugins/$(PLUGINNAME)