forked from sbidoul/edledit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
65 lines (46 loc) · 1.33 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
all: tr res
SRCDIR = edledit
UI_SOURCES = \
$(SRCDIR)/edledit_about_ui.py \
$(SRCDIR)/edledit_license_ui.py \
$(SRCDIR)/edledit_ui.py \
RC_SOURCES = \
$(SRCDIR)/edledit_rc.py
SOURCES = $(UI_SOURCES) \
$(SRCDIR)/edledit.py \
$(SRCDIR)/pyedl.py \
$(SRCDIR)/edlwidget.py
clean:
rm -f $(UI_SOURCES)
rm -f $(RC_SOURCES)
rm -f $(SRCDIR)/translations/*.qm
rm -f MANIFEST
rm -fr dist
rm -fr deb_dist
rm -fr build
rm -f $(SRCDIR)/*.pyc
ui: $(UI_SOURCES)
$(SRCDIR)/edledit_ui.py: $(SRCDIR)/edledit.ui
pyuic5 -x -o $@ $<
$(SRCDIR)/edledit_about_ui.py: $(SRCDIR)/edledit_about.ui
pyuic5 -x -o $@ $<
$(SRCDIR)/edledit_license_ui.py: $(SRCDIR)/edledit_license.ui
pyuic5 -x -o $@ $<
tr: $(SRCDIR)/translations/edledit_fr.qm $(SRCDIR)/translations/edledit_de.qm
$(SRCDIR)/translations/edledit_fr.ts: $(SOURCES)
pylupdate5 -verbose $(SOURCES) -ts $@
$(SRCDIR)/translations/edledit_fr.qm: $(SRCDIR)/translations/edledit_fr.ts
lrelease $<
$(SRCDIR)/translations/edledit_de.ts: $(SOURCES)
pylupdate5 -verbose $(SOURCES) -ts $@
$(SRCDIR)/translations/edledit_de.qm: $(SRCDIR)/translations/edledit_de.ts
lrelease $<
res: $(RC_SOURCES)
$(SRCDIR)/edledit_rc.py: $(SRCDIR)/edledit.qrc
pyrcc5 -o $@ $<
sdist: all
rm -f MANIFEST
python setup.py sdist
bdist_deb: all
rm -f MANIFEST
python setup.py --command-packages=stdeb.command bdist_deb