From: Patrik Gornicz Date: Sun, 28 Sep 2008 03:32:35 +0000 (-0400) Subject: fixed depend mistake X-Git-Tag: v0.07~14 X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?p=physics.git;a=commitdiff_plain;h=a68587cf59ffe62f426309963382c4a6a9015ed7 fixed depend mistake --- diff --git a/src/Makefile b/src/Makefile index 9f7a154..3eb3e59 100644 --- a/src/Makefile +++ b/src/Makefile @@ -66,7 +66,7 @@ ${TARGET}: ${OBJS} # rule to make a depend file from a .cpp ${DEPSDIR}%.d: %.cpp ${Q1}echo "DEP: $@" - ${Q2}${CXX} -MM ${CXXFLAGS} $< | sed 's,: , $@: ,' > $@ + ${Q2}${CXX} -MM ${CXXFLAGS} $< | sed 's,\(^.*\):,${OBJSDIR}\1 $@:,' > $@ # rule to make an object file from a .cpp ${OBJSDIR}%.o: %.cpp