vladon
vladon

Reputation: 8401

CodeLite: relative paths in makefile

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

Answers (2)

vladon
vladon

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

Jarod42
Jarod42

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

Related Questions