Page 1 of 1

Relative paths in create *.mk files

Posted: Wed May 11, 2011 8:44 pm
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"

Re: Relative paths in create *.mk files

Posted: Sat Aug 27, 2011 9:03 pm
by eranif
Yes there is a way to change that.

Please see here:

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

Eran