Relative paths?

General questions regarding the usage of CodeLite
User avatar
jdarnold
CodeLite Curious
Posts: 6
Joined: Thu Jun 07, 2012 6:16 pm
Genuine User: Yes
IDE Question: C++
Contact:

Relative paths?

Post by jdarnold »

Is there any way to have the generated makefiles use relative paths rather than full paths? If it uses a full path to the source file, I can't really share the makefile with anyone else.
Last edited by jdarnold on Tue Jun 26, 2012 2:50 am, edited 1 time in total.
Jonathan Arnold
User avatar
Jarod42
CodeLite Expert
Posts: 240
Joined: Wed Sep 30, 2009 5:54 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Re: Relative paths?

Post by Jarod42 »

If it can help, Premake is a tool which can generate (stand alone) makefile and CodeLite project (and also other IDE project).
User avatar
jdarnold
CodeLite Curious
Posts: 6
Joined: Thu Jun 07, 2012 6:16 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Relative paths?

Post by jdarnold »

I looked at premake but it just looked like Yet Another Makefile language I would have to learn. Not really interested in multi-platform make files right now. Just want to be able to give my project's .mk files and have someone build in their home folder.
Jonathan Arnold
jfouche
CodeLite Guru
Posts: 351
Joined: Mon Oct 20, 2008 7:26 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Re: Relative paths?

Post by jfouche »

You'd better ask him to download and use CodeLite ;)
CodeLite is not design to produce makefiles. It uses makefiles to produce binaries.
Jérémie
User avatar
jdarnold
CodeLite Curious
Posts: 6
Joined: Thu Jun 07, 2012 6:16 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Relative paths?

Post by jdarnold »

Except it generates very nice makefiles! And a simple substitution with another editor gets them to work anywhere. And it's actually only in the spot where the -MM file is passed in that uses the full path.
Jonathan Arnold
Post Reply