Version macros are a lot of boilerplate required after each glib version bump. It is better to automate the whole process.
This leaves only API index to add manually into glib-docs.xml when bumping GLib version. That file cannot be generated because Meson does not allow passing a buit file to gnome.gtkdoc()'s main_xml kwarg unfortunately.