From f85097a427e1e2ea910df29e0c592978df10e979 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 21 Apr 2022 15:36:04 +0100 Subject: Run a Meson build during distcheck This verifies that all the necessary files for the Meson build are in the Autotools-built tarball. Signed-off-by: Simon McVittie --- Makefile.am | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index c25dfb68..00b72cc0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -236,3 +236,14 @@ lcov-clean: genlcov: $(AM_V_GEN) $(LCOV) --directory $(top_builddir) --capture --output-file coverage.info $(AM_V_GEN) $(GENHTML) --prefix $(top_builddir) --output-directory coverage coverage.info + +distcheck-hook: distcheck-hook-meson +distcheck-hook-meson: + set -e; if command -v meson > /dev/null; then \ + cd $(distdir); \ + pwd; \ + meson _build/meson; \ + meson compile -C _build/meson -v; \ + meson test -C _build/meson -v; \ + rm -fr _build/meson; \ + fi -- cgit v1.2.1