-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (45 loc) · 1.16 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
#
# Utilities to speed up develpment
#
INTF_UI = devicetree/gui/dt_main_window.ui \
devicetree/gui/compiler_dialog.ui \
devicetree/gui/console_dialog.ui
INTF_PY = $(INTF_UI:.ui=.py)
help:
@echo "Utility Targets"
@echo ""
@echo " run - build depends and launch the app"
@echo " designer - run the QT4 GUI Designer"
@echo " test - run the testing "
@echo " clean - tidy up general files"
@echo " distclean - scrub the directory structure"
@echo ""
designer:
designer-qt4 &
run: $(INTF_PY)
PYTHONPATH=. python3 devicetree/dtviewer.py
build-ui: $(INTF_PY)
.SUFFIXES: .ui .py
.ui.py:
@rm -f $@
pyside-uic $< > $@
info:
@echo "INTF_UI = $(INTF_UI)"
@echo "INTF_PY = $(INTF_PY)"
clean:
rm -rf build
rm -f $(INTF_PY)
find . -name '*~' | xargs /bin/rm -f
find . -name '__pycache__' | xargs /bin/rm -rf
distclean: clean
rm -rf venv
#
# Utility for bootstrapping the virtual-env
#
get-pip.py:
wget https://bootstrap.pypa.io/get-pip.py
venv: get-pip.py
@echo "Setting up VirtualEnv ..."
/usr/bin/python3 /usr/bin/pyvenv-3.4 $@ \
--system-site-packages --without-pip
. $@/bin/activate && python3 get-pip.py