Commit 46a0e74d authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

make: version -- Ensure that .gitid exist vefore read

In case if there is no .gitid file we might endup
with build error. Make sure it exist.
Reported-by: 's avatarPavel Emelyanov <xemul@parallels.com>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 1e919423
...@@ -7,7 +7,7 @@ GITID := $(shell if [ -d ".git" ]; then git describe; fi) ...@@ -7,7 +7,7 @@ GITID := $(shell if [ -d ".git" ]; then git describe; fi)
ifeq ($(GITID),) ifeq ($(GITID),)
GITID := 0 GITID := 0
else else
GITID_FILE_VALUE := $(shell if [ `cat .gitid` = $(GITID) ]; then echo y; fi) GITID_FILE_VALUE := $(shell if [ -f '.gitid' ]; then if [ `cat .gitid` = $(GITID) ]; then echo y; fi; fi)
ifneq ($(GITID_FILE_VALUE),y) ifneq ($(GITID_FILE_VALUE),y)
.PHONY: $(GITID_FILE) .PHONY: $(GITID_FILE)
endif endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment