User forums > Using Code::Blocks
Compling on a remote machine
erezz:
Now, "Build project/target", "Compile single file", "Clean project/target", "Ask if rebuild is needed" & "Silent build" for the project are set to "$makefile". I guess that this is what you meant when you wrote "change the "Make" commands in the projects "Build options" to just $makefile".
The "Make commands" for Debug & Release are empty.
the Makefile is executable.
When I hit ctrl+F9. I get this:
--- Code: ---
-------------- Build: Debug in my_proj_name ---------------
Using makefile: Makefile
/bin/sh: Makefile: not found
Process terminated with status 127 (0 minutes, 0 seconds)
0 errors, 0 warnings (0 minutes, 0 seconds)
--- End code ---
Jenna:
--- Quote from: jens on December 29, 2011, 06:43:28 pm ---Maybe a little hacky, but this should work:
* Place your script in the "Execution directory" of your makefile
* use ./[your_script] as makefile
* change the "Make" commands in the projects "Build options" to just $makefile
* do this for all targets, or just for the projects and empty the commands for the targets
* for compiling a single file or for cleaning you can use commandline parameters, similar to the makefile-targets
I tested it with a simple project on my debian machine.
Not tested with ssh, but this should not make a difference (at least if you do not need passwords).
With build script this might also be possible to do.
--- End quote ---
Make sure these settings are correct in the projects properties.
Navigation
[0] Message Index
[*] Previous page
Go to full version