From 286db002f8c85fee0d65d05c845fb1878fcd11a6 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 19 Oct 2019 22:09:52 +0200 Subject: meson: fix version generation from git run_command() was only run at configure time, meaning the generated version (that was passed on to the sources via -DFUZZEL_VERSION) became stale. Fix by implementing a shell script that generates a header file, and wrap this in a custom target that is run every time (but the generated file is only updated when the version changes) --- main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'main.c') diff --git a/main.c b/main.c index e81d2395..dfb1982d 100644 --- a/main.c +++ b/main.c @@ -39,6 +39,7 @@ #include "slave.h" #include "terminal.h" #include "tokenize.h" +#include "version.h" #include "vt.h" #define min(x, y) ((x) < (y) ? (x) : (y)) -- cgit v1.3