diff --git a/doc/Makefile.am b/doc/Makefile.am index 6d2ec5e283..2b3a4e10af 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -63,7 +63,7 @@ dist-hook : $(MAN_DOC) $(HTML_DOC) # the following Bash snippet is used to automatically generate an alphabetical list included by index.adoc: __pagelist: echo >__pagelist - for adocfile in $$(ls *.adoc); do \ + for adocfile in $(ASCIIDOC_DOC); do \ if [ "$${adocfile}" != "index.adoc" ]; then \ noext=$${adocfile//.adoc/}; \ echo "* xref:$${adocfile}[$${noext}]" >> __pagelist; \