Make sure we delete the revision.h files when updating.
Also, only use annotated tags for git revision numbers.
This commit is contained in:
parent
782f091637
commit
685597c795
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue