The issue was visible when trying to perform 'make distcheck'
without the .version file.
Reported-by: Craig Small <csmall@enc.com.au>
Reference: http://www.freelists.org/post/procps/watch-8bit-and-make-distcheck
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
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: