diff --git a/src/gui/Makefile.am b/src/gui/Makefile.am index 0930ca12b..e4f4cf2a8 100644 --- a/src/gui/Makefile.am +++ b/src/gui/Makefile.am @@ -6,9 +6,10 @@ version.h: echo '#define BUILT_DATE "'`date`'"' > $@ @if test -d $(top_srcdir)/.git ; then \ pushd $(top_srcdir) ; \ - GITDESCRIBE=$$(git describe --always --dirty || echo 'VCS failed') ; \ + GITBRANCH=$$(git rev-parse --abbrev-ref HEAD) ; \ + GITDESCRIBE=$$(git describe --always --tags --dirty || echo 'VCS failed') ; \ popd ; \ - echo '#define VCS "'$${GITDESCRIBE}'"' >> $@ ; \ + echo '#define VCS "'$${GITDESCRIBE} [$${GITBRANCH}]'"' >> $@ ; \ fi noinst_HEADERS = version.h .PHONY: version.h