devel-docs: fix automake when --disable-gtk-docs is used

A number of autmake files under devel-docs expand "CLEANFILES += ...". This
depends on gtkdocize setting up gtk-docs.make with (amongst other things)
"CLEANFILES = ...". However when running autogen.sh with --disable-gtk-docs,
gtk-docs.make is only populated with EXTRA_DIST - meaning CLEANFILES is not
set, and automake fails to parse the devel-docs automake files.

Therefore we need to explicitly set CLEANFILES when --disable-gtk-docs is
used to avoid seeing errors such as the following when running autogen:
  devel-docs/libgimp/Makefile.am:85: error: CLEANFILES must be set with '=' before using '+='

The CLEANFILES extension was first added in:
  0052803313 (devel-docs: REVERT THIS once module.actions get removed automatically, 2020-10-25)
This commit is contained in:
Andrzej Hunt 2021-08-10 17:15:23 +02:00 committed by Jehan
parent 63122482db
commit 64c786e19a

View file

@ -282,6 +282,7 @@ $LIBTOOLIZE --force || exit $?
if test x$enable_gtk_doc = xno; then
if test -f gtk-doc.make; then :; else
echo "EXTRA_DIST = missing-gtk-doc" > gtk-doc.make
echo "CLEANFILES = " >> gtk-doc.make
fi
echo "WARNING: You have disabled gtk-doc."
echo " As a result, you will not be able to generate the API"