Make .P files depend on build dir.