diff --git a/am-shared/docs-dir-include.am b/am-shared/docs-dir-include.am index 34d969ab..f246ef41 100644 --- a/am-shared/docs-dir-include.am +++ b/am-shared/docs-dir-include.am @@ -186,24 +186,32 @@ $(LINKS): if test "x$$d1" != "x$$oldd1" ; then \ echo "* \`$$d1/\`" ;\ oldd1=$$d1 ;\ + oldd2="";\ + oldd3="";\ + oldd4="";\ fi ; \ if test "x$$d2" = x ; then \ echo " * [$$docname]($$html) ([src]($(REPOURL)/$$doc))" ;\ elif test "x$$d2" != "x$$oldd2" ; then \ echo " * \`$$d2/\`" ;\ oldd2=$$d2 ;\ + oldd3="";\ + oldd4="";\ + oldd5="";\ fi ; \ if test "x$$d3" = x -a "x$$d2" != x; then \ echo " * [$$docname]($$html) ([src]($(REPOURL)/$$doc))" ;\ elif test "x$$d3" != "x$$oldd3" ; then \ echo " * \`$$d3/\`" ;\ oldd3=$$d3 ;\ + oldd4="";\ fi ; \ if test "x$$d4" = x -a "x$$d3" != x ; then \ echo " * [$$docname]($$html) ([src]($(REPOURL)/$$doc))" ;\ elif test "x$$d4" != "x$$oldd4" ; then \ echo " * \`$$d4/\`" ;\ oldd4=$$d4 ;\ + oldd5="";\ fi ; \ if test "x$$d5" = x -a "x$$d4" != x ; then \ echo " * [$$docname]($$html) ([src]($(REPOURL)/$$doc))" ;\