From: Jonathan McDowell Date: Thu, 20 Aug 2015 12:22:25 +0000 (+0200) Subject: Update version.h when source files change X-Git-Tag: onak-0.4.6~4 X-Git-Url: http://the.earth.li/gitweb/?p=onak.git;a=commitdiff_plain;h=51ec76b5bdb5197056ca242d55b6b662866ae0f1 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. --- 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-`\"" \