-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (35 loc) · 983 Bytes
/
Makefile
File metadata and controls
50 lines (35 loc) · 983 Bytes
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
#Directory with ui and resource files
RESOURCE_DIR = .
#Directory for compiled resources
COMPILED_DIR = .
#UI files to compile
UI_FILES = dock_properties.ui playback.ui cam_control.ui
#Qt resource files to compile
RESOURCES = resources.qrc
#pyuic4 and pyrcc4 binaries
<<<<<<< HEAD
PYUIC = pyuic5 --import-from=.
PYRCC = pyrcc5
PATCH = python3 patch_ui.py
=======
PYUIC = pyuic5
PYRCC = pyrcc5
>>>>>>> default
#################################
# DO NOT EDIT FOLLOWING
COMPILED_UI = $(UI_FILES:%.ui=$(COMPILED_DIR)/%.py)
COMPILED_RESOURCES = $(RESOURCES:%.qrc=$(COMPILED_DIR)/%_rc.py)
all : resources ui
resources : $(COMPILED_RESOURCES)
ui : $(COMPILED_UI)
<<<<<<< HEAD
=======
>>>>>>> default
$(COMPILED_DIR)/%.py : $(RESOURCE_DIR)/%.ui
$(PYUIC) $< -o $@
$(PATCH) $@
$(COMPILED_DIR)/%_rc.py : $(RESOURCE_DIR)/%.qrc
$(PYRCC) $< -o $@
$(PATCH) $@
clean :
$(RM) $(COMPILED_UI) $(COMPILED_RESOURCES) $(COMPILED_UI:.py=.pyc) $(COMPILED_RESOURCES:.py=.pyc)