diff --git a/makefile.locale b/makefile.locale
index 9703d1ad50d6cab8a4cc8b96eb81e53c54f5c0d5..5578a5eb4e0be5d464e5a0d667c142aa1a758251 100644
--- a/makefile.locale
+++ b/makefile.locale
@@ -9,7 +9,7 @@ ifeq ($(wildcard ../../build-docdep.perl),../../build-docdep.perl)
 vpath %conf . .. ../..
 vpath %in . .. ../..
 vpath %xsl . .. ../..
-
+vpath %rb  . .. ../..
 
 ifdef mandir
 tmp_mandir := $(mandir)
@@ -21,8 +21,11 @@ endif
 include ../../Makefile
 
 XMLTO_EXTRA += --searchpath ../..
+ifdef USE_ASCIIDOCTOR
+ASCIIDOC_EXTRA += -I../..
+else
 ASCIIDOC_CONF = -f ../../asciidoc.conf
-
+endif
 doc-l10n: all
 
 install-l10n: