summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>2013-02-27 12:28:27 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-27 07:44:10 -0800
commiteb3376d612d836c1343f9140dcb67b8bc32f5d33 (patch)
tree6a983dc3a241be3e79a34efa21d351f62ef00c62 /Makefile
parent6a29da800b31ddc81bf3f2636aa7b124d1b96e7e (diff)
downloadsubsurface-eb3376d612d836c1343f9140dcb67b8bc32f5d33.tar.gz
Suppress the "/bin/sh: 1: cannot open version.h: No such file" noise.
Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c620df2e8..273448e83 100644
--- a/Makefile
+++ b/Makefile
@@ -28,7 +28,8 @@ XSLTFILES = xslt/*.xslt
VERSION_FILE = version.h
# There's only one line in $(VERSION_FILE); use the shell builtin `read'
STORED_VERSION_STRING = \
- $(subst ",,$(shell read ignore ignore v <$(VERSION_FILE) && echo $$v))
+ $(subst ",,$(shell [ ! -r $(VERSION_FILE) ] || \
+ read ignore ignore v <$(VERSION_FILE) && echo $$v))
#" workaround editor syntax highlighting quirk
UNAME := $(shell $(CC) -dumpmachine 2>&1 | grep -E -o "linux|darwin|win")