From: Sami Kerola Date: Mon, 4 Jun 2012 07:42:50 +0000 (+0200) Subject: build-sys: do not assume $(top_srcdir)/.version file always exists X-Git-Tag: v3.3.4~59 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=47cc1b6ccfd1e6e10aafbf21e932991a10c97f7e;p=procps-ng 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 --- 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: