BUG : Broken dependencies when building with an implicit dependency on a phony build rule

Note : This is a reproduceable example of a bug, not a fix. The only reason it's a pull request is because github has no "attach" feature. Please don't actually merge this pull request.

Reproduceable case : 
 - Run testDeps/buildCorrect. This touches the core.c file, builds bin/main then bin/test correctly.
 - Run testDeps/buildBroken. This does the same, but bin/test does not build. This example uses a phony build rule as an implicit dependency
 
I have many (100's) implicit dependencies in my link targets, phony build rules allow me to aggregate the filenames & pass them to the linker command.