Skip to content

Instantly share code, notes, and snippets.

@marcuswestin
Created October 24, 2013 18:45
Show Gist options
  • Save marcuswestin/7142792 to your computer and use it in GitHub Desktop.
Save marcuswestin/7142792 to your computer and use it in GitHub Desktop.
Makefile for phantomjs
PHANTOMJS = /usr/local/bin/phantomjs
${PHANTOMJS}:
echo "\n\n*** Installing phantomjs to ${PHANTOMJS}\n****************************************************\n\n"
rm -rf /tmp/phantomjs-1.6.1-macosx-static*
curl http://phantomjs.googlecode.com/files/phantomjs-1.6.1-macosx-static.zip > /tmp/phantomjs-1.6.1-macosx-static.zip
cd /tmp && unzip /tmp/phantomjs-1.6.1-macosx-static.zip
cp /tmp/phantomjs-1.6.1-macosx-static/bin/phantomjs ${PHANTOMJS}
test-foo.js: ${PHANTOMJS}
${PHANTOMJS} foo.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment