Skip to content

Instantly share code, notes, and snippets.

@tmpvar
Created March 23, 2014 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmpvar/9730533 to your computer and use it in GitHub Desktop.
Save tmpvar/9730533 to your computer and use it in GitHub Desktop.
build marlin via Makefile on OSX
#!/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