From 47cc1b6ccfd1e6e10aafbf21e932991a10c97f7e Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Mon, 4 Jun 2012 09:42:50 +0200 Subject: [PATCH] build-sys: do not assume $(top_srcdir)/.version file always exists The issue was visible when trying to perform 'make distcheck' without the .version file. Reported-by: Craig Small Reference: http://www.freelists.org/post/procps/watch-8bit-and-make-distcheck Signed-off-by: Sami Kerola --- Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 45aad49b..5d373e26 100644 --- a/Makefile.am +++ b/Makefile.am @@ -108,7 +108,9 @@ dist_procpsng_DATA = \ Documentation/BUGS \ Documentation/FAQ -BUILT_SOURCES = $(top_srcdir)/.version +@ if [ -f $(top_srcdir)/.version ]; then \ + BUILT_SOURCES = $(top_srcdir)/.version \ +fi $(top_srcdir)/.version: echo $(VERSION) > $@-t && mv $@-t $@ dist-hook: