changed $(dir $@) to ${$@}, which prevents an odd directory bug from occuring
authorPatrik Gornicz <Gornicz.P@gmail.com>
Wed, 24 Jun 2009 00:38:07 +0000 (20:38 -0400)
committerPatrik Gornicz <Gornicz.P@gmail.com>
Wed, 24 Jun 2009 00:38:07 +0000 (20:38 -0400)
rules.mk

index 31ffe12..7a4a728 100644 (file)
--- 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