Reputation: 8401
Codelite puts absolute paths in makefile, such as:
=== mygreatapp.workspace ===
<...>
WorkspacePath := "/home/vladon/Projects/mygreatapp"
ProjectPath := "/home/vladon/Projects/mygreatapp"
<...>
===
And in generated makefiles it uses absolute paths also.
Therefore app cannot be build on other machine.
How to make paths relative in makefiles produced by CodeLite?
Upvotes: 2
Views: 1844
Reputation: 8401
Oh, I find a simple solution:
codelite-make -w <workspace-file> -c <configuration>
It regenerates Makefile
with current directories on the target machine. Running it before make
solves the problem.
Upvotes: 1
Reputation: 217065
In workspace and project, Codelite uses relative paths. Codelite generates Makefile during the build (and the generated Makefile does have not the purpose to be distributed, see them as temporary files as the .o generated).
So you may build on other machine using Codelite directly.
If you want a makefile generator, there are specific tools for that.
Upvotes: 1