]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
build: support missing gtkdocize in releases
authorTobias Stoeckmann <tobias@stoeckmann.org>
Mon, 24 Feb 2025 18:34:10 +0000 (19:34 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Wed, 26 Feb 2025 13:59:03 +0000 (07:59 -0600)
The release tarballs may already contain symbolic links into the
file system for gtk-doc specific files.

If gtk-doc is not installed, and thus not desired for building,
remove the symbolic links and create empty files instead.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Link: https://github.com/kmod-project/kmod/pull/295
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
(cherry picked from commit 889473e801984382bd08927717e9322c20418144)

autogen.sh

index ab97de4f67ac0181e832080ad2d1c8034c6b735c..33f363f066a8f50ba6b72f0ccb009ed359c8069a 100755 (executable)
@@ -12,7 +12,16 @@ fi
 
 cd $topdir
 
-gtkdocize --docdir libkmod/docs || touch libkmod/docs/gtk-doc.make
+gtkdocize --docdir libkmod/docs || NO_GTK_DOC="yes"
+if [ "x$NO_GTK_DOC" = "xyes" ]
+then
+       for f in libkmod/docs/gtk-doc.make m4/gtk-doc.m4
+       do
+               rm -f $f
+               touch $f
+       done
+fi
+
 autoreconf --force --install --symlink
 
 libdir() {