From eb3376d612d836c1343f9140dcb67b8bc32f5d33 Mon Sep 17 00:00:00 2001 From: Cristian Ionescu-Idbohrn Date: Wed, 27 Feb 2013 12:28:27 +0100 Subject: Suppress the "/bin/sh: 1: cannot open version.h: No such file" noise. Signed-off-by: Cristian Ionescu-Idbohrn Signed-off-by: Dirk Hohndel --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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") -- cgit v1.2.3-70-g09d2