Skip to content

Commit

Permalink
Fix hash printing in Makefile.am.
Browse files Browse the repository at this point in the history
(prevents automake from overwriting this functionality from Makefile.in)
  • Loading branch information
goracle committed Feb 26, 2018
1 parent 9e371af commit a09b043
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a09b043

Please sign in to comment.