#${G_OBJS_TESTS}: ${L_OBJS_$P}
#${G_DEPS_TESTS}: ${L_DEPS_$P}
+${TARGETTMP_$D}: ${BINDIR_$P}${SONAME_${G_LIB}}
+
+
+# how to copy a library to the tests bin directory
+${BINDIR_$P}${SONAME_${G_LIB}}: ${TARGET_${G_LIB}} | $${@D}
+ ${cmd-cp}
# how to link the main target
${TARGETTMP_$P}: ${L_OBJS_$P} | $${@D}
${TARGET_$P}: ${TARGETTMP_$P} | $${@D}
${cmd-cp}
-# how to copy a library to the bin directory
-#${BINDIR_$P}${SONAME_${G_LIB}}: ${TARGET_${G_LIB}} | $${@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