mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 12:33:40 -04:00
Stop hardcoding VERSION in the Makefile.
The Makefile determines VERSION in one of two (relevant) ways:
* If a .git directory is present, it uses git-describe.
* Otherwise, it reads the contents of a .version file.
Write ${PV} to a .version file to let the Makefile inject the
git-describe output for live builds.
This provides a more accurate version string (including the commit hash)
in modinfo rather than a generic and unhelpful "9999".
Signed-off-by: Florian Albrechtskirchinger <falbrechtskirchinger@gmail.com>