+_phantomjs:
+ perl ./bin/bomb.pl --timeout="${PHANTOMJS_TIMEOUT}.5" ${PHANTOMJS} phantom/run-jasmine.js ${PHANTOMJS_URL} ${PHANTOMJS_TIMEOUT}
+
+mike-test:
+ $(MAKE) _phantomjs PHANTOMJS_URL=http://x.example.indexdata.com/jasmine-popup.html
+
+screenshot:
+ ${PHANTOMJS} phantom/screenshot.js ${PHANTOMJS_URL} ${IMAGES}/screenshot.png 1200 1000
+
+screenshot-mkws:
+ for i in ${SCREENSHOT_WIDTH}; do \
+ ${PHANTOMJS} phantom/screenshot.js http://mkws.indexdata.com ${IMAGES}/mkws-$$i.png $$i 1000 & \
+ done; wait
+ ls -l ${IMAGES}
+
+screenshot-indexdata:
+ for i in ${SCREENSHOT_WIDTH}; do \
+ ${PHANTOMJS} phantom/screenshot.js http://www.indexdata.com ${IMAGES}/indexdata-$$i.png $$i 1000 & \
+ done; wait
+ ls -l ${IMAGES}
+
+jsbeautifier jsb indent:
+ for i in package.json ./spec*/*.js ./js/*.js ./phantom/*.js; do \
+ jsbeautifier -j $$i > $@.tmp && mv -f $@.tmp $$i; \
+ done
+
+perltidy:
+ @ls ${PERL_SCRIPTS} | xargs -n1 -P16 perl -c 2>/dev/null
+ @ls ${PERL_SCRIPTS} | xargs -n2 -P8 perltidy -b
+
+
+node_modules node-modules:
+ npm install ${NPM_INSTALL_FLAGS}
+
+apache-start:
+ bin/apache-template-update
+ ${APACHE_HTTPD} -f `pwd`/${TMP_DIR}/jasmine-dev
+
+apache-stop:
+ @-if [ -e ${TMP_DIR}/mkws-jasmine.pid ]; then \
+ kill `cat ${TMP_DIR}/mkws-jasmine.pid`; \
+ else \
+ killall apache2 2> /dev/null; \
+ fi
+ @sleep 0.3
+ rm -f ${TMP_DIR}/mkws-jasmine.pid