forked from kartoza/otf-project
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
executable file
·38 lines (24 loc) · 1.09 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
# Makefile for a PyQGIS plugin
all: compile
dist: package
install: copy2qgis
PY_FILES = HelloServer.py HelloServerDialog.py __init__.py
UI_FILES = Ui_HelloServer.py
RESOURCE_FILES = resources.py
compile: $(UI_FILES) $(RESOURCE_FILES)
%.py : %.qrc
pyrcc4 -o $@ $<
%.py : %.ui
pyuic4 -o $@ $<
clean:
find ./ -name "*.pyc" -exec rm -rf \{\} \;
rm -f ../HelloServer.zip
rm -f Ui_HelloServer.py
package:
cd .. && find HelloServer/ -print|grep -v Make | grep -v zip | grep -v .git | zip HelloServer.zip -@
localrepo:
cp ../HelloServer.zip ~/public_html/qgis/HelloServer.zip
copy2qgis: package
unzip -o ../HelloServer.zip -d ~/.qgis/python/plugins
check test:
@echo "Sorry: not implemented yet."