X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=Makefile.in;h=08a06bfc90ea9a93d1ec889506c3c0d600d48fd7;hb=469a7046cd4b3087184beec190c372edb929fe55;hp=d23f50accf051d96bd160bb29dc1724150d77b28;hpb=40db37d30b4d0172e33a5419365f999ee6e4827d;p=onak.git diff --git a/Makefile.in b/Makefile.in index d23f50a..08a06bf 100644 --- a/Makefile.in +++ b/Makefile.in @@ -154,6 +154,7 @@ keydctl.o: keydctl.c keyd.h sed -e 's:@BINDIR@:@bindir@:g' \ -e 's:@CONFIG@:@sysconfdir@/onak.conf:g' \ -e 's:@LIBDIR@:@libdir@:g' \ + -e 's:@RUNDIR@:@runstatedir@:g' \ -e 's:@SBINDIR@:@sbindir@:g' \ -e 's:@STATEDIR@:@localstatedir@:g' \ < $< > $@ @@ -176,10 +177,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; \