Sublime Forum

Build system using general makefile

#1

Hi,

I’m new to Sublime, and although I read http://sublime-text-unofficial-documentation.readthedocs.org/en/sublime-text-2/file_processing/build_systems.html, among other references, I was unable to solve my problem.

I have a general makefile, that is located at, say, ‘/home/user/dir1/dir2’, which just includes a set of makfile files, located in ‘mk’ directory under ‘dir2’, like this:

include mk/*.mk

The included .mk files rely that they are running in ‘/home/user/dir1/dir2/mk’ directory, and calculate paths based on this.

I wrote this ‘my.sublime-build’ file:

{ "cmd": "make", "project=estudos.arquitetura prj_info"] , "working_dir": "/home/user/dir1/dir2"] }

Where "project=estudos.arquitetura prj_info" is a possible combination of parameters that the ‘makefile’ in ‘/home/user/dir1/dir2’ accept.

Well, the output I get, in console view, is:

Traceback (most recent call last): File "./sublime_plugin.py", line 337, in run_ return self.run(**args) File "./exec.py", line 146, in run TypeError: coercing to Unicode: need string or buffer, list found

Could anyone help me?

Thanks in advance!

0 Likes