From: Lucas De Marchi Date: Tue, 18 Feb 2025 14:58:41 +0000 (-0600) Subject: build: Run autogen.sh for autotools compatibility X-Git-Tag: v34~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=651b901cf1fad4acd15b601fb9194236a7af54fb;p=thirdparty%2Fkmod.git build: Run autogen.sh for autotools compatibility When generating the dist archive, run autogen.sh so the tarball can also be used by distros using autotools. Signed-off-by: Lucas De Marchi --- diff --git a/autogen.sh b/autogen.sh index 5b60888e..ab97de4f 100755 --- a/autogen.sh +++ b/autogen.sh @@ -3,7 +3,13 @@ set -e oldpwd=$(pwd) -topdir=$(dirname $0) + +if [ -n "$MESON_DIST_ROOT" ]; then + topdir="$MESON_DIST_ROOT" +else + topdir=$(dirname $0) +fi + cd $topdir gtkdocize --docdir libkmod/docs || touch libkmod/docs/gtk-doc.make diff --git a/meson.build b/meson.build index 7e7c0209..2e39f0ef 100644 --- a/meson.build +++ b/meson.build @@ -538,6 +538,12 @@ if get_option('build-tests') subdir('testsuite') endif +# ------------------------------------------------------------------------------ +# dist && autotools compat +# ------------------------------------------------------------------------------ + +meson.add_dist_script('autogen.sh') + # ------------------------------------------------------------------ # documentation # ------------------------------------------------------------------