Relative paths in create *.mk files
Posted: Wed May 11, 2011 8:44 pm
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"