Added makefile support from https://github.com/sudar/Arduino-Makefile,
exporting these

export ARDUINO_DIR=~/arduino
export ARDMK_DIR=~/reference/a/arduino/makefile
export AVR_TOOLS_DIR=~/arduino/hardware/tools/avr
export AVRDUDE=$AVR_TOOLS_DIR/../avrdude
export AVRDUDE_CONF=$AVR_TOOLS_DIR/../avrdude.conf
export MONITOR_PORT=/dev/ttyUSB0

~/reference/a/arduino/makefile has Arduino.mk and Common.mk