Sublime Forum

Build system for linux module compilation

#1

Hi,

After 15 minutes of Sublime Text trial, I bought it immediately. Since then I’ve found many features I appreciate, just to say you did a great job (only thing I dislike is the sidebar color which contrasts with the main theme).

I wish to write a build system to compile my module via F7 instead of launching a command in the terminal. I woud like to do so via this build system:

{ "shell" : true, "cmd": "make" , "-C" ,"/lib/modules/`uname-r`/build", "M=$PWD" ] }
It returns

[quote]make: *** No targets specified and no makefile found. Stop.
[Finished in 0.0s with exit code 2][/quote]

I would really like to see the resulting command in order to know if parameters got interpreted correctly (doesn’t look like it) and not only its output.

I thought the following would be working

[code]{
“shell” : true,
“cmd”: “bash” , “compile.sh” ] # with compile.sh containing the "make -C /lib/… " command

}[/code]
it also returns [Finished in 0.0s] whereas make shoudl return errors (synta mistakes in my C file).

Thanks for your help.

0 Likes