[gtk-doc] Makefile.am: add workarounds for 'make distcheck'



commit 9d6fd14fbee19a3c3e6e4db7e36e570706eb9183
Author: Stefan Sauer <ensonic users sf net>
Date:   Thu Aug 15 17:53:54 2019 +0200

    Makefile.am: add workarounds for 'make distcheck'
    
    This fixes an automake regression wrt pycache files.

 Makefile.am | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 134b42a..da9b828 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -121,8 +121,17 @@ MAINTAINERCLEANFILES = \
        RELNOTES.txt \
        ChangeLog-?.?? \
        gtk-doc-*.tar.xz \
-       build-aux \
-       __pycache__ gtkdoc/__pycache__ tests/__pycache__
+       build-aux
+
+clean-local:
+       -find . -name "__pycache__" -type d -exec rm -r "{}" \;
+
+## We get warnings for left-over files when doing 'make distcheck'
+distuninstallcheck_listfiles = find . -type f -print
+
+# Workaround for automake 1.61
+# https://lists.gnu.org/archive/html/bug-automake/2018-04/msg00002.html
+distuninstallcheck_listfiles += | grep -v '__pycache__'
 
 -include $(top_srcdir)/git.mk
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]