-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
77 lines (54 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/usr/bin/make -f
# Makefile for houston_patchbay #
# ---------------------- #
# Created by houston4444
#
PYUIC := pyuic5
PYRCC := pyrcc5
LRELEASE := lrelease
ifeq (, $(shell which $(LRELEASE)))
LRELEASE := lrelease-qt5
endif
ifeq (, $(shell which $(LRELEASE)))
LRELEASE := lrelease-qt4
endif
# ---------------------
all: RES UI LOCALE
# ---------------------
# Resources
RES: patchbay/resources_rc.py
patchbay/resources_rc.py: resources/resources.qrc
$(PYRCC) $< -o $@
# ---------------------
# UI code
UI: mkdir_ui patchbay
mkdir_ui:
@if ! [ -e patchbay/ui ];then mkdir -p patchbay/ui; fi
patchbay: patchbay/ui/canvas_options.py \
patchbay/ui/canvas_port_info.py \
patchbay/ui/filter_frame.py \
patchbay/ui/patchbay_tools.py \
patchbay/ui/type_filter_frame.py
patchbay/ui/%.py: resources/ui/%.ui
$(PYUIC) --import-from=.. $< -o $@
# ------------------------
# # Translations Files
LOCALE: locale
locale: locale/patchbay_en.qm \
locale/patchbay_fr.qm
locale/%.qm: locale/%.ts
$(LRELEASE) $< -qm $@
locale/%.qm: locale/%.ts
$(LRELEASE) $< -qm $@
# -------------------------
clean:
rm -f *~ patchbay/resources_rc.py \
locale/*.qm
rm -f -R patchbay/ui \
patchbay/__pycache__ \
patchbay/*/__pycache__ \
patchbay/*/*/__pycache__
# -------------------------
debug:
$(MAKE) DEBUG=true
# -------------------------