diff --git a/Makefile.sphinx b/Makefile.sphinx
index c8748cdb94d3ed37e8ef1d60addb40d7f0d6d868..3948a475a329025815344714177db13672323fd3 100644
--- a/Makefile.sphinx
+++ b/Makefile.sphinx
@@ -12,7 +12,7 @@ SPHINX_SRCDIR = .
 # relative to docs/ dir. Hence "." exclude the docs/ dir itself
 APIDOC_EXCLUDES = conftest.py setup.py
 APIDOC_EXCLUDES += */tests/* */migrations/* */wsgi.py */conftest.py
-APIDOC_EXCLUDES += deposit/settings/* web/settings/* dataset/*
+APIDOC_EXCLUDES += */deposit/settings/* */web/settings/* */dataset/*
 APIDOC_EXCLUDES += bin build dist utils node_modules
 APIDOC_SWH_EXCLUDES = $(patsubst %,"../%",$(APIDOC_EXCLUDES))