forked from mlt/sextante-taudem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (33 loc) · 1.1 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
UI_PATH=.
UI_SOURCES=$(wildcard $(UI_PATH)/*.ui)
UI_FILES=$(patsubst $(UI_PATH)/%.ui, $(UI_PATH)/ui_%.py, $(UI_SOURCES))
LANG_PATH=i18n
LANG_SOURCES=$(wildcard $(LANG_PATH)/*.ts)
LANG_FILES=$(patsubst $(LANG_PATH)/%.ts, $(LANG_PATH)/%.qm, $(LANG_SOURCES))
RES_PATH=.
RES_SOURCES=$(wildcard $(RES_PATH)/*.qrc)
RES_FILES=$(patsubst $(RES_PATH)/%.qrc, $(RES_PATH)/%_rc.py, $(RES_SOURCES))
PRO_PATH=.
PRO_FILES=$(wildcard $(PRO_PATH)/*.pro)
ALL_FILES= ${RES_FILES} ${UI_FILES} ${LANG_FILES}
all: $(ALL_FILES)
ui: $(UI_FILES)
ts: $(PRO_FILES)
pylupdate4 -verbose $<
lang: $(LANG_FILES)
res: $(RES_FILES)
$(UI_FILES): $(UI_PATH)/ui_%.py: $(UI_PATH)/%.ui
pyuic4 -o $@ $<
$(LANG_FILES): $(LANG_PATH)/%.qm: $(LANG_PATH)/%.ts
lrelease $<
$(RES_FILES): $(RES_PATH)/%_rc.py: $(RES_PATH)/%.qrc
pyrcc4 -o $@ $<
clean:
rm -f $(ALL_FILES)
rm -f *.pyc
rm -f *.zip
package:
cd .. && rm -f *.zip && zip -r sextante_taudem.experimental.zip sextante_taudem -x \*.pyc \*.ts \*.ui \*.qrc \*.pro \*~ \*.git\* \*Makefile*
mv ../sextante_taudem.experimental.zip .
upload:
plugin_uploader.py sextante_taudem.experimental.zip