summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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")