Created
March 23, 2014 21:59
-
-
Save tmpvar/9730533 to your computer and use it in GitHub Desktop.
build marlin via Makefile on OSX
This file contains 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
#!/bin/bash | |
# put this file in your Marlin root directory with chmod +x | |
# run ./build.sh to fetch the preconfigured arduino, unzip it and build against it. | |
# Requires unzip & wget & make | |
if [ ! -d "deps" ]; then | |
mkdir deps | |
cd deps | |
wget https://dl.dropboxusercontent.com/u/68081994/printrbot/Arduino.zip | |
unzip Arduino.zip | |
cd .. | |
echo "deps" >> .gitignore | |
fi | |
# Note: if you decide to use make directly after this you'll want to either update the Makefile or | |
# provide the following environment vars | |
ARDUINO_INSTALL_DIR="deps/Arduino.app/Contents/Resources/Java/" AVR_TOOLS_PATH="deps/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/" make |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment