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)
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() {