fixed a path issue with deps
authorPatrik Gornicz <Gornicz.P@gmail.com>
Sat, 13 Jun 2009 04:00:48 +0000 (00:00 -0400)
committerPatrik Gornicz <Gornicz.P@gmail.com>
Sat, 13 Jun 2009 04:00:48 +0000 (00:00 -0400)
lib/rules.mk

index 6a8fd30..9f0ebe8 100644 (file)
@@ -46,7 +46,7 @@ ${OBJSDIR_$P}%.o: ${SRCSDIR_$P}%.cpp | $${@D}
 ${DEPSDIR_$P}%.d: ${SRCSDIR_$P}%.cpp | $${@D}
        ${Q1}${PRNTFMT} "DEP" "$@"
        ${Q2}${CXX} -MM ${CXXFLAGS} $< ${INCFLAGS} | \
-               sed 's/\(^.*\):/$(subst /,\/,${OBJSDIR}\1 $@):/' > $@
+               sed 's/\(^.*\):/$(subst /,\/,${@:${DEPSDIR}%.d=${OBJSDIR}%.o} $@):/' > $@
 
 
 L_CLEANCMDS +=    $P-cleanbin