Created
October 24, 2013 18:45
-
-
Save marcuswestin/7142792 to your computer and use it in GitHub Desktop.
Makefile for phantomjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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