From 51ec76b5bdb5197056ca242d55b6b662866ae0f1 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Thu, 20 Aug 2015 14:22:25 +0200 Subject: [PATCH] Update version.h when source files change Make $(SRCS) a Makefile dependency for version.h so once any of the source files change we can update our version to reflect this fact. --- Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 463e4f8..75f1df5 100644 --- a/Makefile.in +++ b/Makefile.in @@ -176,7 +176,7 @@ distclean: clean doxygen-docs: *.c *.h Doxyfile doxygen -version.h: +version.h: $(SRCS) @echo '#include "config.h"' > version.h @if [ -e .git ]; then \ echo "#define ONAK_VERSION \"`git describe --tags --dirty | cut -d - -f 2-`\"" \ -- 2.39.5