Examples for Arduino Nano V3.0.
First, install the Arduino software from arduino.cc as usual, as well as the FTDI driver (if needed for your board). https://github.com/mjoldfield/Arduino-Makefile
You'll need a couple of Perl modules:
sudo cpan YAML
sudo cpan Device::SerialPort
Note: cpan may break after first use. If it does, try sudo chmod +x /usr/bin/cpan
git clone https://github.com/mjoldfield/Arduino-Makefile.git arduino-makefile
cd arduino-makefile/examples/Blink
Edit Makefile
and change BOARD_TAG
to nano328
and ARDUINO_PORT
to /dev/tty.usb*
export ARDUINO_DIR=/Applications/Arduino.app/Contents/Resources/Java/
export ARDMK_DIR=../../
make
make upload