From: Patrik Gornicz Date: Sat, 13 Jun 2009 04:00:48 +0000 (-0400) Subject: fixed a path issue with deps X-Git-Tag: libbear-premerge~63 X-Git-Url: http://gitweb.pgornicz.com/?a=commitdiff_plain;h=ecdfea30003f3ca45f486b37915696e96124566f;p=libbear.git fixed a path issue with deps --- diff --git a/lib/rules.mk b/lib/rules.mk index 6a8fd30..9f0ebe8 100644 --- a/lib/rules.mk +++ b/lib/rules.mk @@ -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