Files
@ 6602296fb593
Branch filter:
Location: light9/makefile - annotation
6602296fb593
3.8 KiB
text/x-makefile
checkpoint show data
Ignore-this: 4a25b7ded0aea1d03e516c4bd73b851e
Ignore-this: 4a25b7ded0aea1d03e516c4bd73b851e
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 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | c8cffe82b537 9816e249ce2e f7ae0faa0a44 9816e249ce2e 9816e249ce2e 9816e249ce2e 771f50f19b4b 9816e249ce2e a8942364e4ee 5e76c8fd8a03 5e76c8fd8a03 5e76c8fd8a03 168262618f2d 168262618f2d 168262618f2d 168262618f2d 168262618f2d 168262618f2d 168262618f2d 233b81d9bd9d 233b81d9bd9d 233b81d9bd9d 233b81d9bd9d 8189f27679a1 8189f27679a1 15a13eba6fc3 15a13eba6fc3 15a13eba6fc3 8189f27679a1 fb830770c703 02415a3cebb2 a8942364e4ee 8189f27679a1 8189f27679a1 8189f27679a1 8189f27679a1 8189f27679a1 8189f27679a1 cca75951554a 8189f27679a1 8189f27679a1 8189f27679a1 8189f27679a1 8189f27679a1 8189f27679a1 8189f27679a1 8189f27679a1 83dfc2e87e62 0b2edd4de97a 0b2edd4de97a 8189f27679a1 a8942364e4ee a8942364e4ee a8942364e4ee a8942364e4ee a8942364e4ee a8942364e4ee b7c752e49355 58a634ab0f4c ee07ea5cd46b ee07ea5cd46b 43ddee394d28 43ddee394d28 ee07ea5cd46b ee07ea5cd46b ee07ea5cd46b 9674c9f015bb 9674c9f015bb 9674c9f015bb 9674c9f015bb df1237c39672 33a5a98e9bf1 33a5a98e9bf1 69088fe2865e 1f877950ad28 9be85c08a69f 9be85c08a69f 9be85c08a69f 9be85c08a69f 9be85c08a69f 9be85c08a69f 9be85c08a69f 9be85c08a69f 9be85c08a69f 9be85c08a69f 9be85c08a69f a36928f7cc35 eeadad4a998e eeadad4a998e eeadad4a998e 1f877950ad28 1f877950ad28 1f877950ad28 eeadad4a998e 499ef7c133eb 499ef7c133eb 499ef7c133eb 499ef7c133eb beb0688cbfd8 beb0688cbfd8 beb0688cbfd8 beb0688cbfd8 beb0688cbfd8 beb0688cbfd8 beb0688cbfd8 15a13eba6fc3 15a13eba6fc3 d6396679c121 d6396679c121 6059de6659c3 37cbb245d93c 37cbb245d93c 37cbb245d93c 37cbb245d93c 1b42120d97f5 37cbb245d93c 37cbb245d93c 37cbb245d93c 1b42120d97f5 1b42120d97f5 1b42120d97f5 | NOSEARGS="--no-path-adjustment light9.rdfdb.rdflibpatch light9.rdfdb.patch light9.effecteval.test_effect light9.collector light9.rdfdb.graphfile_test light9.paint light9.effect"
tests:
eval env/bin/nosetests -x $(NOSEARGS)
tests_watch:
eval env/bin/nosetests --with-watcher $(NOSEARGS)
tests_coverage:
eval env/bin/nosetests --with-coverage --cover-erase --cover-html --cover-html-dir=/tmp/light9-cov/ --cover-package=light9 --cover-branches $(NOSEARGS)
test_js_init:
npm install
test_js:
coffee -c light9/web/*.coffee
node_modules/mocha/bin/mocha --compilers coffee:coffee-script/register --globals window,N3 light9/web/graph_test.coffee
test_js_watch:
# have coffee continuously running
watch -c node_modules/mocha/bin/mocha --compilers coffee:coffee-script/register --globals window,N3 light9/web/graph_test.coffee --colors
# needed packages: python-gtk2 python-imaging
binexec:
chmod a+x bin/*
install_python_deps: link_to_sys_packages
env/bin/pip install twisted
env/bin/pip install -U -r requirements.txt
DP=/usr/lib/python2.7/dist-packages
SP=env/lib/python2.7/site-packages
link_to_sys_packages:
# http://stackoverflow.com/questions/249283/virtualenv-on-ubuntu-with-no-site-packages
ln -sf $(DP)/glib $(SP)/
ln -sf $(DP)/gi $(SP)/
ln -sf $(DP)/gobject $(SP)/
ln -sf $(DP)/cairo $(SP)/
ln -sf $(DP)/gtk-2.0 $(SP)/
ln -sf $(DP)/pygtk.py $(SP)/
ln -sf $(DP)/pygtk.pth $(SP)/
ln -sf $(DP)/pygst.pth $(SP)/
ln -sf $(DP)/pygst.py $(SP)/
ln -sf $(DP)/gst-0.10 $(SP)/
ln -sf $(DP)/goocanvasmodule.so $(SP)/
ln -sf $(DP)/cv2.x86_64-linux-gnu.so $(SP)/
ln -sf $(DP)/cv.py $(SP)/
PYTHON=/usr/bin/pypy
PYTHON=/usr/bin/python
create_virtualenv:
mkdir -p env
virtualenv -p $(PYTHON) env
env/bin/pip install -U pip
ln -sf ../env/bin/python bin/python
tkdnd_build:
# get tkdnd r95 with subversion
# then apply tkdnd-patch-on-r95 to that
cd tkdnd/trunk
./configure
make
bin/ascoltami2: gst_packages link_to_sys_packages
gst_packages:
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-gst0.10 python-gst-1.0 python-pygoocanvas gir1.2-goocanvas-2.0
packages:
sudo aptitude install coffeescript normalize-audio audacity python-pygame libffi-dev tix libzmq3-dev python-dev libssl-dev python-opencv python-cairo
node_modules/bower/bin/bower:
npm install
bin/node:
ln -sf `which nodejs` bin/node
bower: node_modules/bower/bin/bower bin/node
cd light9/web/lib; nodejs ../../../node_modules/bower/bin/bower install
cd light9/web/lib/N3.js; npm install; PATH=../../../../bin:$(PATH) npm run browser
cd light9/web/lib/d3; PATH=../../../../bin:$(PATH) npm install
raspberry_pi_packages:
sudo apt-get install python-picamera python-dev python-twisted python-virtualenv
raspberry_pi_virtualenv:
mkdir -p env_pi
virtualenv --system-site-packages env_pi
env_pi/bin/pip install cyclone 'coloredlogs==6.0'
darcs_show_checkpoint:
darcs add --quiet --recursive ${LIGHT9_SHOW}
darcs rec -a -m "checkpoint show data" ${LIGHT9_SHOW}
/usr/share/arduino/Arduino.mk:
sudo aptitude install arduino-mk
arduino_upload: /usr/share/arduino/Arduino.mk
cd rgbled
make upload
effect_node_setup: create_virtualenv packages binexec install_python_deps
coffee:
zsh -c 'coffee -cw light9/web/{.,live,timeline,paint,effects}/*.coffee'
env-mypy/bin/mypy:
mkdir -p env-mypy
virtualenv -p /usr/bin/python3 env-mypy/
env-mypy/bin/pip install mypy==0.510 lxml==3.7.3
mypy-collector: env-mypy/bin/mypy
env-mypy/bin/mypy --py2 --ignore-missing-imports --strict-optional --custom-typeshed-dir stubs --html-report /tmp/rep bin/collector light9/collector/*.py
mypy-paint: env-mypy/bin/mypy
env-mypy/bin/mypy --py2 --ignore-missing-imports --strict-optional --custom-typeshed-dir stubs --html-report /tmp/rep light9/paint/*.py
|