summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Sauer <ensonic@users.sf.net>2019-08-15 17:53:54 +0200
committerStefan Sauer <ensonic@users.sf.net>2019-08-15 17:53:54 +0200
commit9d6fd14fbee19a3c3e6e4db7e36e570706eb9183 (patch)
tree9e384317b72afa679ef375f2f77a1d20a0ace2e7
parentc2abc10526d43659bc325dbdfa3a362d74b82b59 (diff)
downloadgtk-doc-9d6fd14fbee19a3c3e6e4db7e36e570706eb9183.tar.gz
Makefile.am: add workarounds for 'make distcheck'
This fixes an automake regression wrt pycache files.
-rw-r--r--Makefile.am13
1 files 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