-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
62 lines (45 loc) · 1.34 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
RSFILES := ui/resources_rc.py
UIFILES := ui/main_window.ui
UIFILES += ui/inference_results.ui
PKG_FILES += metadata.txt
PKG_FILES += __init__.py
PKG_FILES += etri_plugin.py
PKG_FILES += graphic.py
PKG_FILES += layer.py
PKG_FILES += main.py
PKG_FILES += qgis_utils.py
PKG_FILES += table.py
PKG_FILES += ui_utils.py
PKG_FILES += xmcda.py
PKG_FILES += mcda/__init__.py
PKG_FILES += mcda/electre_tri.py
PKG_FILES += mcda/generate.py
PKG_FILES += mcda/types.py
PKG_FILES += ui/__init__.py
PKG_FILES += $(UIFILES:%.ui=%.py)
PKG_FILES += $(RSFILES)
PKG_FILES += pysimplesoap/__init__.py
PKG_FILES += pysimplesoap/client.py
PKG_FILES += pysimplesoap/simplexml.py
PKG_FILES += COPYING
PKG_FILES += README
QGISDIR ?= .local/share/QGIS/QGIS3/profiles/default
PLUGINNAME = qgis_etri
MAKE_SUBDIR = $(MAKE) -C qgis_etri -e RSFILES="$(RSFILES)" -e UIFILES="$(UIFILES)"
all:
$(MAKE_SUBDIR) all
clean:
find . -name '*.pyc' -exec rm --force {} +
mrproper: clean
rm -f $(PLUGINNAME).zip
$(MAKE_SUBDIR) mrproper
zip: all
zip -9v $(PLUGINNAME).zip $(PKG_FILES:%=qgis_etri/%)
link: uninstall
ln -s $(shell pwd)/$(PLUGINNAME) $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME)
unlink: uninstall
install: zip uninstall
unzip $(PLUGINNAME).zip -d $(HOME)/$(QGISDIR)/python/plugins/
uninstall:
rm -Rf $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME)
.PHONY: all clean mrproper zip