]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Have `make distcheck` verify CMake build succeeds 2965/head
authorBenjamin Gilbert <bgilbert@backtick.net>
Sun, 19 Apr 2026 04:05:06 +0000 (23:05 -0500)
committerBenjamin Gilbert <bgilbert@backtick.net>
Sun, 19 Apr 2026 04:05:58 +0000 (23:05 -0500)
There have been multiple instances of test cases being added to the CMake
build but not the Autotools one, thus omitting them from the released dist
tarball.  Prevent this by testing the CMake build during `make distcheck`.

Makefile.am

index a0015b06c6566f86fc905ab89e105d549157ae9f..cc48c00e49e2225a2f8d9d630234db542fd9bacf 100644 (file)
@@ -64,6 +64,11 @@ dist-hook:
        -rm -f $(distdir)/*/Makefile $(distdir)/*/*/Makefile
        cd $(distdir)/doc && /bin/sh update.sh
 
+# Verify dist includes all files needed by CMake
+distcheck-hook:
+       mkdir $(distdir)/_build/cmake
+       cd $(distdir)/_build/cmake && cmake ../.. && make && make test
+
 #
 # Extra rules for cleanup
 #