diff --git a/GNUmakefile b/GNUmakefile index 6506648..5526a5c 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -116,7 +116,7 @@ CFLAGS += -DSSL_SUPPORT LDLIBS += -lssl endif -GIT_VERSION=$(shell git describe 2>/dev/null || echo "") +GIT_VERSION=$(shell git describe --tags 2>/dev/null || echo "") GIT_REVISION=$(shell git show --abbrev-commit 2>/dev/null | head -n 1 | cut -f 2 -d " " || echo "") OLD_REVISION=$(shell grep GIT_REVISION revision.h 2>/dev/null | cut -f 3 -d " " | tr -d "\"") @@ -251,7 +251,7 @@ dist-clean: @rm -rf $(all_OBJECTS) *~ core clean: - @rm -rf $(libuhub_OBJECTS) *~ core $(uhub_BINARY) $(admin_BINARY) $(autotest_BINARY) $(adcrush_BINARY) $(all_OBJECTS) autotest.c && \ + @rm -rf $(libuhub_OBJECTS) *~ core $(uhub_BINARY) $(admin_BINARY) $(autotest_BINARY) $(adcrush_BINARY) $(all_OBJECTS) autotest.c revision.h revision.h.tmp && \ echo $(MSG_CLEAN)