Fix problems with CLEANFILES and automake-1.11.1
authorOwen W. Taylor <otaylor@fishsoup.net>
Fri, 17 Aug 2012 02:06:45 +0000 (22:06 -0400)
committerOwen W. Taylor <otaylor@fishsoup.net>
Fri, 17 Aug 2012 17:41:34 +0000 (13:41 -0400)
Running with automake-1.11.1, a couple fixes are needed
for CLEANFILES when gtk-doc is not installed.

(Found with Amazon Linux AMI release 2012.03)

https://bugzilla.gnome.org/show_bug.cgi?id=682067

autogen.sh
glib/Makefile.am

index 892b57b..4bbc00d 100755 (executable)
@@ -11,7 +11,10 @@ GTKDOCIZE=$(which gtkdocize 2>/dev/null)
 if test -z $GTKDOCIZE; then
         echo "You don't have gtk-doc installed, and thus won't be able to generate the documentation."
         rm -f gtk-doc.make
-        echo 'EXTRA_DIST =' > gtk-doc.make
+        cat > gtk-doc.make <<EOF
+EXTRA_DIST =
+CLEANFILES =
+EOF
 else
         gtkdocize || exit $?
 fi
index 65142f2..4f31d53 100644 (file)
@@ -84,7 +84,7 @@ EXTRA_DIST +=                         \
        gconstructor.h          \
        $(MIRRORING_TAB_SOURCE)
 
-CLEANFILES= libglib-gdb.py
+CLEANFILES += libglib-gdb.py
 
 # These may be in the builddir too
 BUILT_EXTRA_DIST =             \