Add targets test-* and build-* for each product-* target, only re-run tests on change

Indeed all those custom targets are not forwarding any timestamps of files they depend on, so it seems depending files have to explicitely listed. At least that I have done and now things are behaving like expected.
Done.