Returns the executable code element that this dependency points to
        if it can be found.

def target(self):
        """Returns the executable code element that this dependency points to
        if it can be found.
        """
        if self._target is None:
            if '%' in self.name:
                parts = self.name.split('%')
                base = self.module.parent.type_search(parts[0], self.name, self.module)
                if base is not None:
                    self._target = base.target
                else:
                    self._target = False
            else:
                found, foundmod = self.module.parent.tree_find(self.name, self.module, "executables")
                if found is not None:
                    self._target = found
                else:
                    self._target = False

        if isinstance(self._target, Executable):
            return self._target
        else:
            return None