diff --git a/.gitignore b/.gitignore
index 6252d61a018ab46e3fdab5a8bd715353ed4f3b13..de3dc1baeb3defc73750069c6ad60cfe7207f459 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,7 +13,7 @@
 /TAGS
 /aclocal.m4
 /autom4te.cache
-/autotools
+/autotools/
 /config.log
 /config.status
 /configure
@@ -23,6 +23,10 @@
 /*.tar.bz2
 /*.tar.gz
 
+# overrides
+!/autotools/ac_python_module.m4
+!/autotoosl/docbook-wrapper
+
 # devel
 /devel/clean-cluster
 /devel/upload