summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Giles <giles@thaumas.net>2019-08-30 14:09:56 -0700
committerRalph Giles <giles@thaumas.net>2019-08-30 14:58:10 -0700
commit5dbbfd4f6830d29879b2dfdf83edcd5a8f30c855 (patch)
tree7692c4562a284aca7ae7b02b855b2c1354358929
parent105eaed9551973e0fd6ee6c5bf36624a07959133 (diff)
downloadogg-git-5dbbfd4f6830d29879b2dfdf83edcd5a8f30c855.tar.gz
Run the cmake build as part of make distcheck.
Verify that the CMake build works from a release tarball. This will give coverage for problems with part of the CMake build description not being included in the source package. We still consider the `make dist` output from the GNU autotools build to be canonical.
-rw-r--r--Makefile.am11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 1336d80..70eb174 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -26,6 +26,17 @@ dist-hook:
echo "OK"; \
fi; \
done
+
+# Verify cmake works with the dist tarball.
+cmake_builddir = _build.cmake
+distcheck-hook:
+ $(RM) -rf $(cmake_builddir)
+ mkdir $(cmake_builddir)
+ cd $(cmake_builddir) && cmake ../$(top_distdir)
+ cd $(cmake_builddir) && cmake --build .
+ cd $(cmake_builddir) && ctest
+ $(RM) -rf $(cmake_builddir)
+
debug:
$(MAKE) all CFLAGS="@DEBUG@"