make/meson: Generate a `version.h'
Using a header file allows us to keep the version string out of the
compiler command line. This should heavily increase direct hits with
ccache. Specifying the compiler argument for a single source file is
rather clumsy with Meson, hence the more pompous header file.
Change-Id: If6c4e33e4944d2b264252dbcd2fd69ecf7bd8905
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/355
Reviewed-by: Felix Singer <felixsinger@posteo.net>
diff --git a/.gitignore b/.gitignore
index 63ad6b9..f7eb943 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,6 +9,7 @@
/flashprog-*
/flashprog.exe
/flashprog.8
+/include/version.h
/libflashprog.a
/libflashprog-doc/
/versioninfo.inc