Relative paths in create *.mk files

General questions regarding the usage of CodeLite
pkohut
CodeLite Curious
Posts: 3
Joined: Fri Apr 23, 2010 8:42 am
Genuine User: Yes
IDE Question: C++
Contact:

Relative paths in create *.mk files

Post by pkohut »

Is there a setting so the path names are relative in output files such as the auto generated make files. I pushed my project to Google Code then pulled to a different computer for testing and the "hg diff" revealed that absolute path names are being used (sample snippet from the generated mk file)
##
## Objects
##
$(IntermediateDirectory)/DrawGin$(ObjectSuffix): DrawGin.cpp $(IntermediateDirectory)/DrawGin$(DependSuffix)
$(CompilerName) $(SourceSwitch) "/home/paul/testhg/drawgin/DrawGin/DrawGin.cpp" $(CmpOptions) $(ObjectSwitch)$(IntermediateDirectory)/DrawGin$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/DrawGin$(DependSuffix): DrawGin.cpp
@$(CompilerName) $(CmpOptions) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/DrawGin$(ObjectSuffix) -MF$(IntermediateDirectory)/DrawGin$(DependSuffix) -MM "/home/paul/testhg/drawgin/DrawGin/DrawGin.cpp"

$(IntermediateDirectory)/DrawGin$(PreprocessSuffix): DrawGin.cpp
@$(CompilerName) $(CmpOptions) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/DrawGin$(PreprocessSuffix) "/home/paul/testhg/drawgin/DrawGin/DrawGin.cpp"
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Relative paths in create *.mk files

Post by eranif »

Yes there is a way to change that.

Please see here:

http://codelite.org/forum/viewtopic.php ... sd=a#p6584

Eran
Make sure you have read the HOW TO POST thread
Post Reply