summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-04-16 17:24:57 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-04-16 17:24:57 +0200
commit816860f2d81a40f9aecc8c7ef9f5ab2c42e56d7f (patch)
tree877e8bee9fd598b7060c3834663bf80f4415ad45
parent3e8559ad7ba7e9e7b57fac7ea2123803659fcb2c (diff)
no error output if first time run (nw)
-rw-r--r--makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/makefile b/makefile
index 40eab7364c3..18a6526375d 100644
--- a/makefile
+++ b/makefile
@@ -878,8 +878,11 @@ endif
ifeq ($(GIT_AVAILABLE),git)
NEW_GIT_VERSION := $(shell git describe)
-OLD_GIT_VERSION := $(shell cat .mame_version)
-
+ifeq (posix,$(SHELLTYPE))
+OLD_GIT_VERSION := $(shell cat .mame_version 2> /dev/null)
+else
+OLD_GIT_VERSION := $(shell cat .mame_version 2> NUL)
+endif
ifneq ($(NEW_GIT_VERSION),$(OLD_GIT_VERSION))
$(shell git describe > .mame_version)
$(shell touch $(SRC)/version.cpp)