Make linker scripts a prerequisite of their target

If $@_lds exists, then its value is a prerequisite of its target in
$(elf_targets) or $(ld_targets).