Page 1 of 1

Relative paths?

Posted: Tue Jun 26, 2012 12:12 am
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.

Re: Relative paths?

Posted: Tue Jun 26, 2012 1:29 am
by Jarod42
If it can help, Premake is a tool which can generate (stand alone) makefile and CodeLite project (and also other IDE project).

Re: Relative paths?

Posted: Tue Jun 26, 2012 2:51 am
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.

Re: Relative paths?

Posted: Tue Jun 26, 2012 1:47 pm
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.

Re: Relative paths?

Posted: Wed Jun 27, 2012 9:42 pm
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.