-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
59 lines (42 loc) · 1.12 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
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
pyuic4 -x -o $@ $<
$(SRCDIR)/edledit_about_ui.py: $(SRCDIR)/edledit_about.ui
pyuic4 -x -o $@ $<
$(SRCDIR)/edledit_license_ui.py: $(SRCDIR)/edledit_license.ui
pyuic4 -x -o $@ $<
tr: $(SRCDIR)/translations/edledit_fr.qm
$(SRCDIR)/translations/edledit_fr.ts: $(SOURCES)
pylupdate4 -verbose $(SOURCES) -ts $@
$(SRCDIR)/translations/edledit_fr.qm: $(SRCDIR)/translations/edledit_fr.ts
lrelease $<
res: $(RC_SOURCES)
$(SRCDIR)/edledit_rc.py: $(SRCDIR)/edledit.qrc
pyrcc4 -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