commit 1c33ce01d0326a7c4b4c461ccb30928487c8592f
parent c8c9a24d99033458650c04c91bcbd2e6a78f4fc6
Author: Joris Vink <joris@coders.se>
Date: Tue, 7 Sep 2021 21:58:53 +0200
Add kore_build_date to version.c
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
@@ -176,6 +176,8 @@ $(VERSION): $(OBJDIR) force
echo "No version information found (no .git or RELEASE)"; \
exit 1; \
fi
+ @printf "const char *kore_build_date = \"%s\";\n" \
+ `date +"%Y-%m-%d"` >> $(VERSION);
$(KODEV): src/cli.c
$(MAKE) -C kodev
@@ -256,6 +258,8 @@ tools-install:
$(OBJDIR)/%.o: src/%.c
$(CC) $(CFLAGS) -c $< -o $@
+src/kore.c: $(VERSION)
+
src/python.c: $(PYTHON_CURLOPT)
src/seccomp.c: $(PLATFORM)