diff --git a/doclib/SConscript b/doclib/SConscript
index 9cb4bacbc1be29a437d389cda748da8d03f45753..3d415b596eb69958d132879467de415f30aefc9a 100644
--- a/doclib/SConscript
+++ b/doclib/SConscript
@@ -321,7 +321,7 @@ env.Command('doxy-footer.html', Value(footer), writeTemplate)
 env.Alias('all_docs',
           env.Command('search.php', [ Value(search_php), 'html-munge.xsl' ],
                       [ writeTemplate,
-                        'xsltproc --nonet --html --stringparam topdir .. -o - $SOURCE $TARGET 2>/dev/null'
+                        'xsltproc --nonet --html --stringparam topdir .. -o - ${SOURCES[1]} $TARGET 2>/dev/null'
                             + "| sed"
                             +   r" -e 's/\[\[/<?/g' -e 's/\]\]/?>/g'"
                             +   r" -e 's/\$$projectname/Overview/g'"