avoid accumulation of the ".dirty" suffix on $(GITVERSION) during sub-make invocations

* targets.mk: Strip ".dirty" suffix from $(GITVERSION) before
  potentially re-adding it, to avoid accumulation of the suffix during
  sub-make invocations.
This commit is contained in:
Achim Gratz 2012-05-17 10:40:54 +02:00 committed by Bastien Guerry
parent cd9476e774
commit 837ccf464c
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ else
endif
DATE = $(shell date +%Y-%m-%d)
ifneq ($(GITSTATUS),)
GITVERSION := $(GITVERSION).dirty
GITVERSION := $(GITVERSION:.dirty=).dirty
endif
.PHONY: all oldorg update update2 up0 up1 up2 compile $(SUBDIRS) \