+$(JQUERY_UI_PATHES): htdocs/javascript/jquery.ui.%.js: htdocs/javascript/jquery.ui-$(JQUERY_UI_VERSION).%.js
+ ln -snf $(<F) $@
+
+$(JSTREE_PATH):
+ rm -f htdocs/javascript/jquery.jstree-*.js
+ mkdir spool/tmp/jstree
+ wget http://jstree.googlecode.com/files/jsTree.v.$(JSTREE_VERSION).zip -O spool/tmp/jstree/jquery.jstree-$(JSTREE_VERSION).zip
+ unzip spool/tmp/jstree/jquery.jstree-$(JSTREE_VERSION).zip -d spool/tmp/jstree/
+ mv -f spool/tmp/jstree/themes/default/style.css htdocs/css/jstree.css
+ mv -f spool/tmp/jstree/themes/default/d.png htdocs/images/jstree.png
+ mv -f spool/tmp/jstree/jquery.jstree.js htdocs/javascript/jquery.jstree-$(JSTREE_VERSION).js
+ sed -i -e 's/"d\.png"/"..\/images\/jstree.png"/' htdocs/css/jstree.css
+ sed -i -e 's/"throbber\.gif"/"..\/images\/wait.gif"/' htdocs/css/jstree.css
+ sed -i -e 's/#ffffee/inherit/' htdocs/css/jstree.css
+ ln -snf jquery.jstree-$(JSTREE_VERSION).js htdocs/javascript/jquery.jstree.js
+ rm -Rf spool/tmp/jstree
+
+
+##
+## lists rpc
+##
+start-listrpc: spool/run
+ sudo -u list /sbin/start-stop-daemon --pidfile spool/run/listrpc.pid -m -b -x $$PWD/bin/lists.rpc.py --start
+ @sleep 2
+ @sudo -u list kill -0 $$(cat spool/run/listrpc.pid)
+
+start-listrpc-fg: spool/run
+ sudo -u list ./bin/lists.rpc.py
+
+stop-listrpc:
+ -sudo -u list /sbin/start-stop-daemon --pidfile spool/run/listrpc.pid --stop
+ @-rm -f spool/run/listrpc.pid