]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
build: Run autogen.sh for autotools compatibility
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 18 Feb 2025 14:58:41 +0000 (08:58 -0600)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 21 Feb 2025 20:00:51 +0000 (14:00 -0600)
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 <lucas.de.marchi@gmail.com>
autogen.sh
meson.build

index 5b60888e5c1ea7015f72f6343121475f06175a98..ab97de4f67ac0181e832080ad2d1c8034c6b735c 100755 (executable)
@@ -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
index 7e7c02097ff8dcb2da3e080e0732183b5e03fb0a..2e39f0efb644de97a33d21dcfa580fe27b270fd8 100644 (file)
@@ -538,6 +538,12 @@ if get_option('build-tests')
   subdir('testsuite')
 endif
 
+# ------------------------------------------------------------------------------
+# dist && autotools compat
+# ------------------------------------------------------------------------------
+
+meson.add_dist_script('autogen.sh')
+
 # ------------------------------------------------------------------
 # documentation
 # ------------------------------------------------------------------