From: Patrik Gornicz Date: Wed, 24 Jun 2009 00:38:07 +0000 (-0400) Subject: changed $(dir $@) to ${$@}, which prevents an odd directory bug from occuring X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?p=physics.git;a=commitdiff_plain;h=1c05c7027a303c8ea3a718211c9ee6e68acd3b8d changed $(dir $@) to ${$@}, which prevents an odd directory bug from occuring --- diff --git a/rules.mk b/rules.mk index 31ffe12..7a4a728 100644 --- a/rules.mk +++ b/rules.mk @@ -21,15 +21,15 @@ ${TARGET_$P}: ${TARGETTMP_$P} | $${@D} ${cmd-cp} # rule to copy the config files into the working directory -${DSTCFGDIR_$P}%: ${SRCCFGDIR_$P}% | $$(dir $$@) +${DSTCFGDIR_$P}%: ${SRCCFGDIR_$P}% | $${@D} ${cmd-cp} # rule to copy the library files into the working directory -${DSTLIBSDIR_$P}%: ${SRCLIBSDIR_$P}% | $$(dir $$@) +${DSTLIBSDIR_$P}%: ${SRCLIBSDIR_$P}% | $${@D} ${cmd-cp} # rule to copy the text files into the working directory -${DSTTXTDIR_$P}%: ${SRCTXTDIR_$P}% | $$(dir $$@) +${DSTTXTDIR_$P}%: ${SRCTXTDIR_$P}% | $${@D} ${cmd-cp} # rule to make an object file from a .cpp