diff options
author | Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com> | 2013-02-27 12:28:27 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-02-27 07:44:10 -0800 |
commit | eb3376d612d836c1343f9140dcb67b8bc32f5d33 (patch) | |
tree | 6a983dc3a241be3e79a34efa21d351f62ef00c62 /Makefile | |
parent | 6a29da800b31ddc81bf3f2636aa7b124d1b96e7e (diff) | |
download | subsurface-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-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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") |