I am having the same problem, using Arduino-IDE is too restrictive for me, but the makefile does not seem to work.

Any update on the issue?