aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-03-20 23:10:10 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-05-01 17:18:22 +0200
commit4b73dbaec10596ff5688c94b06552cf568071892 (patch)
tree8efd6ddec03e84f158d4574697da62f380b97644
parent551b85c8a241bd45b267db152eca4cb01eddce39 (diff)
downloadsparse-dev-4b73dbaec10596ff5688c94b06552cf568071892.tar.gz
build: use --dirty with 'git describe'
This can help the developer to realize there was some uncommited changes in the tree while testing. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5548f848..bf5bfa91 100644
--- a/Makefile
+++ b/Makefile
@@ -201,7 +201,7 @@ cflags += $($(*)-cflags) $(CPPFLAGS) $(CFLAGS)
selfcheck: $(OBJS:.o=.sc)
-SPARSE_VERSION:=$(shell git describe 2>/dev/null || echo '$(VERSION)')
+SPARSE_VERSION:=$(shell git describe --dirty 2>/dev/null || echo '$(VERSION)')
lib.o: version.h
version.h: FORCE
@echo '#define SPARSE_VERSION "$(SPARSE_VERSION)"' > version.h.tmp