DIST OOT: use build_dir version.i file
[lttng-tools.git] / include / Makefile.am
index 79597f4f2bc81984819bbc88dd7d5852010c1c4d..9f8bf230105d4d3846b438c707c7b0d18c461dce 100644 (file)
@@ -51,6 +51,9 @@ version_verbose_0 = @echo "  GEN       " $@;
 
 version.i:
        $(version_verbose)rm -f version.i.tmp; \
+       if (test ! -f version.i && test -f "$(top_srcdir)/include/version.i"); then \
+               cp "$(top_srcdir)/include/version.i" version.i; \
+       fi; \
        if (test -r "$(top_srcdir)/bootstrap" && test -r "$(top_srcdir)/.git") && \
                        test -x "`which git 2>&1;true`"; then \
                GIT_VERSION_STR="`cd "$(top_srcdir)" && git describe --tags --dirty`"; \
This page took 0.022672 seconds and 4 git commands to generate.