From 034633a3c9c7fd16ff36852ea55dd76e0f59cb64 Mon Sep 17 00:00:00 2001 From: Slava Zanko Date: Tue, 26 Jul 2011 15:55:02 +0300 Subject: [PATCH] Avoided warning message about non-existent maint/version.sh file Signed-off-by: Slava Zanko --- Makefile.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 61eb8bb7e..1433b9132 100644 --- a/Makefile.am +++ b/Makefile.am @@ -23,7 +23,10 @@ update-version: @if test -x $(top_srcdir)/maint/version.sh; then \ $(top_srcdir)/maint/version.sh "$(top_srcdir)" 2>&1 >/dev/null; \ else \ - echo "File not found: $(top_srcdir)/maint/version.sh"; \ + if test ! -e $(top_srcdir)/version.h; then \ + echo "File not found: $(top_srcdir)/maint/version.sh"; \ + exit 1; \ + fi; \ fi $(top_srcdir)/version.h: update-version