refresh targets when their dependencies change

Signed-off-by: Jan Dvořák <mordae@anilinux.org>