```
git for-each-ref refs/tags --sort=-taggerdate --format='%(refname)' --count=1
```

I've found this which will returned the latest tag based on its tag date. But no consideration about stable or not.

So maybe we need two commands : `make self-update` which always checkout the latest tag (which the previous command), and `make self-update-stable' which do the same but only on stable release. However for this last one I don't have any clue on how matching the tag name;(even with @manuquentin idea, I don't know integrate this into the makefile)