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>
This commit is contained in:
Cristian Ionescu-Idbohrn 2013-02-27 12:28:27 +01:00 committed by Dirk Hohndel
parent 6a29da800b
commit eb3376d612

View file

@ -28,7 +28,8 @@ XSLTFILES = xslt/*.xslt
VERSION_FILE = version.h VERSION_FILE = version.h
# There's only one line in $(VERSION_FILE); use the shell builtin `read' # There's only one line in $(VERSION_FILE); use the shell builtin `read'
STORED_VERSION_STRING = \ 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 #" workaround editor syntax highlighting quirk
UNAME := $(shell $(CC) -dumpmachine 2>&1 | grep -E -o "linux|darwin|win") UNAME := $(shell $(CC) -dumpmachine 2>&1 | grep -E -o "linux|darwin|win")