diff --git a/Makefile.am b/Makefile.am index 47e8ff7..a5362ad 100644 --- a/Makefile.am +++ b/Makefile.am @@ -9,6 +9,11 @@ DISTCHECK_CONFIGURE_FLAGS = @DISTCHECK_CONFIGURE_FLAGS@ # # User explicitly has to make docs -- you may not want them # +all: version.h all-recursive + +version.h: + echo "`git log -n 1 --format=format:"#define GITHASH \\"%H:%d\\"%n" HEAD`" > $(srcdir)/include/version.h + doc: cd doc && $(MAKE) doc