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.
This commit is contained in:
parent
105eaed955
commit
5dbbfd4f68
11
Makefile.am
11
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@"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user