DIST OOT: use build_dir version.i file
[lttng-tools.git] / include / Makefile.am
index f7cb8b13efc62aa6a30e1026263728ae1bb19eec..26d16ed367e3bd6def0598f33098ced895167558 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.024367 seconds and 5 git commands to generate.