X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=Makefile.in;h=75f1df5f4572662ef99d29fb2d2d02c664aff273;hb=338e91f33174edebe42d77843c0eea34f53bc53c;hp=d23f50accf051d96bd160bb29dc1724150d77b28;hpb=40db37d30b4d0172e33a5419365f999ee6e4827d;p=onak.git diff --git a/Makefile.in b/Makefile.in index d23f50a..75f1df5 100644 --- a/Makefile.in +++ b/Makefile.in @@ -176,10 +176,10 @@ distclean: clean doxygen-docs: *.c *.h Doxyfile doxygen -version.h: +version.h: $(SRCS) @echo '#include "config.h"' > version.h - @if [ -e .bzr ]; then \ - echo "#define ONAK_VERSION PACKAGE_VERSION \"+bzr`bzr revno`\"" \ + @if [ -e .git ]; then \ + echo "#define ONAK_VERSION \"`git describe --tags --dirty | cut -d - -f 2-`\"" \ >> version.h; \ else \ echo "#define ONAK_VERSION PACKAGE_VERSION" >> version.h; \