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>
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
subdir('testsuite')
endif
+# ------------------------------------------------------------------------------
+# dist && autotools compat
+# ------------------------------------------------------------------------------
+
+meson.add_dist_script('autogen.sh')
+
# ------------------------------------------------------------------
# documentation
# ------------------------------------------------------------------