Little tips to place in your #Makefile:
Get the git version in the current project. It gives either the tag if no changes is detected, or branchname-sha[-dirty] (dirty if not committed changes)
I've thought for a while that there should be, say, a `nix make` or `nix-make` command that can use Nix to supply dependencies for Makefiles (https://t-ravis.com/post/nix/nix-make/), but tonight I had the even more-obvious thought: there could probably be a tool that can convert a #Makefile into a set of #Nix builds and out-links. We could run it like #make, but get dependencies provided by Nix and more granular input-based caching?
@remi I think I will probably go to full source based at least bc that's just how I roll. Plus the collections of blocks available is pretty sparse.
The simple GUI is helping me a lot understanding how things *should* work, though. #icestudio seems to report out the full commands it is running behind the scenes, so maybe I can set up a #Makefile or script or whatever.
kudos from a pro is reassuring indeed! thanks!
Comment bien utiliser la version ou le tag d'un dépôt #Git dans un #Makefile ? Voilà ma méthode...
https://www.metal3d.org/blog/2021/version-git-dans-un-makefile/