annotate makefile @ 1695:03125dac50a2

reorder makefile Ignore-this: ea04b284790a85e8674b3c5b6952f736
author Drew Perttula <drewp@bigasterisk.com>
date Thu, 26 Apr 2018 06:37:21 +0000
parents 0f1b6f48ae1e
children d9337dfe941a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
1 ### setup ###
827
9816e249ce2e add nose build instructions
Drew Perttula <drewp@bigasterisk.com>
parents: 825
diff changeset
2
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
3 packages:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
4 sudo aptitude install coffeescript normalize-audio audacity python-pygame libffi-dev tix libzmq3-dev python-dev libssl-dev python-opencv python-cairo npm git python-virtualenv nginx python-tk
827
9816e249ce2e add nose build instructions
Drew Perttula <drewp@bigasterisk.com>
parents: 825
diff changeset
5
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
6 gst_packages:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
7 sudo aptitude install python-gi gir1.2-gst-plugins-base-1.0 libgirepository-1.0-1 gir1.2-gstreamer-1.0 gstreamer1.0-tools gstreamer1.0-plugins-good gstreamer1.0-pulseaudio python-gst-1.0 python-pygoocanvas gir1.2-goocanvas-2.0
1288
5e76c8fd8a03 rewrite dmx outputter to a new service
Drew Perttula <drewp@bigasterisk.com>
parents: 1240
diff changeset
8
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
9 PYTHON=/usr/bin/pypy
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
10 PYTHON=/usr/bin/python
1362
168262618f2d new test_js target for testing SyncedGraph
Drew Perttula <drewp@bigasterisk.com>
parents: 1327
diff changeset
11
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
12 create_virtualenv:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
13 mkdir -p env
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
14 virtualenv -p $(PYTHON) env
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
15 env/bin/pip install -U pip
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
16 ln -sf ../env/bin/python bin/python
1363
233b81d9bd9d simple first version of SyncedGraph.runHandler
Drew Perttula <drewp@bigasterisk.com>
parents: 1362
diff changeset
17
1233
15a13eba6fc3 effect_node_setup
Drew Perttula <drewp@bigasterisk.com>
parents: 1232
diff changeset
18
860
8189f27679a1 gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 827
diff changeset
19 install_python_deps: link_to_sys_packages
1234
fb830770c703 silly txosc can't setup without twisted
Drew Perttula <drewp@bigasterisk.com>
parents: 1233
diff changeset
20 env/bin/pip install twisted
1299
02415a3cebb2 requirements.txt filename
Drew Perttula <drewp@bigasterisk.com>
parents: 1291
diff changeset
21 env/bin/pip install -U -r requirements.txt
825
a8942364e4ee switch from buildout to virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 820
diff changeset
22
860
8189f27679a1 gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 827
diff changeset
23 DP=/usr/lib/python2.7/dist-packages
8189f27679a1 gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 827
diff changeset
24 SP=env/lib/python2.7/site-packages
8189f27679a1 gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 827
diff changeset
25
8189f27679a1 gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 827
diff changeset
26 link_to_sys_packages:
8189f27679a1 gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 827
diff changeset
27 # http://stackoverflow.com/questions/249283/virtualenv-on-ubuntu-with-no-site-packages
8189f27679a1 gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 827
diff changeset
28 ln -sf $(DP)/glib $(SP)/
907
cca75951554a port ascoltami to Gst 1.0, work around the missing message signals
Drew Perttula <drewp@bigasterisk.com>
parents: 869
diff changeset
29 ln -sf $(DP)/gi $(SP)/
860
8189f27679a1 gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 827
diff changeset
30 ln -sf $(DP)/gobject $(SP)/
8189f27679a1 gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 827
diff changeset
31 ln -sf $(DP)/cairo $(SP)/
8189f27679a1 gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 827
diff changeset
32 ln -sf $(DP)/gtk-2.0 $(SP)/
8189f27679a1 gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 827
diff changeset
33 ln -sf $(DP)/pygtk.py $(SP)/
8189f27679a1 gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 827
diff changeset
34 ln -sf $(DP)/pygtk.pth $(SP)/
8189f27679a1 gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 827
diff changeset
35 ln -sf $(DP)/pygst.pth $(SP)/
8189f27679a1 gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 827
diff changeset
36 ln -sf $(DP)/pygst.py $(SP)/
8189f27679a1 gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 827
diff changeset
37 ln -sf $(DP)/gst-0.10 $(SP)/
869
83dfc2e87e62 add link to system goocanvas, for curvecalc
Drew Perttula <drewp@bigasterisk.com>
parents: 866
diff changeset
38 ln -sf $(DP)/goocanvasmodule.so $(SP)/
1411
0b2edd4de97a setup changes for laptop
drewp@bigasterisk.com
parents: 1377
diff changeset
39 ln -sf $(DP)/cv2.x86_64-linux-gnu.so $(SP)/
0b2edd4de97a setup changes for laptop
drewp@bigasterisk.com
parents: 1377
diff changeset
40 ln -sf $(DP)/cv.py $(SP)/
860
8189f27679a1 gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 827
diff changeset
41
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
42 binexec:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
43 chmod a+x bin/*
1087
1f877950ad28 new picamserve for raspberry pi camera -> http, especially with crop control
Drew Perttula <drewp@bigasterisk.com>
parents: 1070
diff changeset
44
1572
9be85c08a69f fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents: 1563
diff changeset
45
9be85c08a69f fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents: 1563
diff changeset
46 node_modules/bower/bin/bower:
9be85c08a69f fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents: 1563
diff changeset
47 npm install
9be85c08a69f fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents: 1563
diff changeset
48
9be85c08a69f fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents: 1563
diff changeset
49 bin/node:
9be85c08a69f fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents: 1563
diff changeset
50 ln -sf `which nodejs` bin/node
9be85c08a69f fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents: 1563
diff changeset
51
9be85c08a69f fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents: 1563
diff changeset
52 bower: node_modules/bower/bin/bower bin/node
9be85c08a69f fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents: 1563
diff changeset
53 cd light9/web/lib; nodejs ../../../node_modules/bower/bin/bower install
9be85c08a69f fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents: 1563
diff changeset
54 cd light9/web/lib/N3.js; npm install; PATH=../../../../bin:$(PATH) npm run browser
9be85c08a69f fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents: 1563
diff changeset
55 cd light9/web/lib/d3; PATH=../../../../bin:$(PATH) npm install
1291
a36928f7cc35 upgrade jquery, use bower
Drew Perttula <drewp@bigasterisk.com>
parents: 1288
diff changeset
56
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
57 bin/ascoltami2: gst_packages link_to_sys_packages
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
58
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
59 effect_node_setup: create_virtualenv packages binexec install_python_deps
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
60
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
61 tkdnd_build:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
62 # get tkdnd r95 with subversion
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
63 # then apply tkdnd-patch-on-r95 to that
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
64 cd tkdnd/trunk
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
65 ./configure
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
66 make
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
67
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
68 env-mypy/bin/mypy:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
69 mkdir -p env-mypy
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
70 virtualenv -p /usr/bin/python3 env-mypy/
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
71 env-mypy/bin/pip install mypy==0.510 lxml==3.7.3
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
72
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
73 ### build ###
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
74
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
75 coffee:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
76 zsh -c 'coffee -cw light9/web/{.,live,timeline,paint,effects}/*.coffee'
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
77
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
78 mypy-collector: env-mypy/bin/mypy
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
79 env-mypy/bin/mypy --py2 --ignore-missing-imports --strict-optional --custom-typeshed-dir stubs --html-report /tmp/rep bin/collector light9/collector/*.py
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
80
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
81 mypy-paint: env-mypy/bin/mypy
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
82 env-mypy/bin/mypy --py2 --ignore-missing-imports --strict-optional --custom-typeshed-dir stubs --html-report /tmp/rep light9/paint/*.py
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
83
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
84 ### show ###
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
85
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
86 darcs_show_checkpoint:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
87 darcs add --quiet --recursive ${LIGHT9_SHOW}
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
88 darcs rec -a -m "checkpoint show data" ${LIGHT9_SHOW}
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
89
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
90 ### pi setup ###
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
91
1546
eeadad4a998e pi setup docs and fixes
Drew Perttula <drewp@bigasterisk.com>
parents: 1543
diff changeset
92 raspberry_pi_packages:
eeadad4a998e pi setup docs and fixes
Drew Perttula <drewp@bigasterisk.com>
parents: 1543
diff changeset
93 sudo apt-get install python-picamera python-dev python-twisted python-virtualenv
eeadad4a998e pi setup docs and fixes
Drew Perttula <drewp@bigasterisk.com>
parents: 1543
diff changeset
94
1087
1f877950ad28 new picamserve for raspberry pi camera -> http, especially with crop control
Drew Perttula <drewp@bigasterisk.com>
parents: 1070
diff changeset
95 raspberry_pi_virtualenv:
1f877950ad28 new picamserve for raspberry pi camera -> http, especially with crop control
Drew Perttula <drewp@bigasterisk.com>
parents: 1070
diff changeset
96 mkdir -p env_pi
1f877950ad28 new picamserve for raspberry pi camera -> http, especially with crop control
Drew Perttula <drewp@bigasterisk.com>
parents: 1070
diff changeset
97 virtualenv --system-site-packages env_pi
1546
eeadad4a998e pi setup docs and fixes
Drew Perttula <drewp@bigasterisk.com>
parents: 1543
diff changeset
98 env_pi/bin/pip install cyclone 'coloredlogs==6.0'
1184
499ef7c133eb make rule for checkpoints
drewp@bigasterisk.com
parents: 1112
diff changeset
99
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
100 ### arduino build ###
1232
beb0688cbfd8 arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents: 1230
diff changeset
101
beb0688cbfd8 arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents: 1230
diff changeset
102 /usr/share/arduino/Arduino.mk:
beb0688cbfd8 arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents: 1230
diff changeset
103 sudo aptitude install arduino-mk
beb0688cbfd8 arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents: 1230
diff changeset
104
beb0688cbfd8 arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents: 1230
diff changeset
105 arduino_upload: /usr/share/arduino/Arduino.mk
beb0688cbfd8 arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents: 1230
diff changeset
106 cd rgbled
beb0688cbfd8 arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents: 1230
diff changeset
107 make upload
1233
15a13eba6fc3 effect_node_setup
Drew Perttula <drewp@bigasterisk.com>
parents: 1232
diff changeset
108
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
109 ### testing ###
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
110
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
111 NOSEARGS="--no-path-adjustment light9.rdfdb.rdflibpatch light9.rdfdb.patch light9.effecteval.test_effect light9.collector light9.rdfdb.graphfile_test light9.paint light9.effect"
1327
d6396679c121 move to adjustable.coffee and also simplify the getTarget code
Drew Perttula <drewp@bigasterisk.com>
parents: 1318
diff changeset
112
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
113 tests:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
114 eval env/bin/nosetests -x $(NOSEARGS)
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
115
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
116 tests_watch:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
117 eval env/bin/nosetests --with-watcher $(NOSEARGS)
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
118
1506
37cbb245d93c fix tests. add logging, some mypy types.
Drew Perttula <drewp@bigasterisk.com>
parents: 1432
diff changeset
119
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
120 tests_coverage:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
121 eval env/bin/nosetests --with-coverage --cover-erase --cover-html --cover-html-dir=/tmp/light9-cov/ --cover-package=light9 --cover-branches $(NOSEARGS)
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
122
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
123 test_js_init:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
124 npm install
1506
37cbb245d93c fix tests. add logging, some mypy types.
Drew Perttula <drewp@bigasterisk.com>
parents: 1432
diff changeset
125
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
126 test_js:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
127 coffee -c light9/web/*.coffee
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
128 node_modules/mocha/bin/mocha --compilers coffee:coffee-script/register --globals window,N3 light9/web/graph_test.coffee
1563
1b42120d97f5 mypy upgrade
Drew Perttula <drewp@bigasterisk.com>
parents: 1546
diff changeset
129
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
130 test_js_watch:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
131 # have coffee continuously running
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
132 watch -c node_modules/mocha/bin/mocha --compilers coffee:coffee-script/register --globals window,N3 light9/web/graph_test.coffee --colors