]> the.earth.li Git - onak.git/blobdiff - Makefile.in
Add config option to specify keyd socket directory
[onak.git] / Makefile.in
index d23f50accf051d96bd160bb29dc1724150d77b28..75f1df5f4572662ef99d29fb2d2d02c664aff273 100644 (file)
@@ -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; \