2

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?

vladon
  • 8,158
  • 2
  • 47
  • 91

2 Answers2

1

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.

Jarod42
  • 203,559
  • 14
  • 181
  • 302
1

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.

vladon
  • 8,158
  • 2
  • 47
  • 91