diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-03-20 23:10:10 +0100 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-05-01 17:18:22 +0200 |
| commit | 4b73dbaec10596ff5688c94b06552cf568071892 (patch) | |
| tree | 8efd6ddec03e84f158d4574697da62f380b97644 /Makefile | |
| parent | 551b85c8a241bd45b267db152eca4cb01eddce39 (diff) | |
| download | sparse-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>
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
