meson: Only rebuild when files checked in git change
This allows for faster rebuild avoiding to run the target when nothing changed.
This approach is not ideal as we should find a way to actually know when to rebuild based on information from cargo itself but there seem to be no way to do it at this point.