瀏覽代碼

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.
Achim Gratz 13 年之前
父節點
當前提交
837ccf464c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      targets.mk

+ 1 - 1
targets.mk

@@ -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) \