]> git.lizzy.rs Git - rust.git/commitdiff
Add std docs to the build process
authorBrian Anderson <banderson@mozilla.com>
Thu, 27 Oct 2011 21:59:22 +0000 (14:59 -0700)
committerBrian Anderson <banderson@mozilla.com>
Thu, 27 Oct 2011 21:59:22 +0000 (14:59 -0700)
Makefile.in
configure

index c12d592104ed1a74476468c1eba2a5192479c83b..4e4168b99a5a5948b6bbe0d714d2f97e4cc6a9b1 100644 (file)
@@ -141,6 +141,12 @@ else
   endif
 endif
 
+ifeq ($(CFG_NATURALDOCS),)
+  $(info cfg: no naturaldocs found, omitting doc/std/index.html
+else
+  DOCS += doc/std/index.html
+endif
+
 ifdef CFG_DISABLE_DOCS
   $(info cfg: disabling doc build (CFG_DISABLE_DOCS))
   DOCS :=
index a27aa9b7ecc0f538d8f539cf0982186f8ab5dd2a..12d991b96514d01279c93a3d69444be9ca238679 100755 (executable)
--- a/configure
+++ b/configure
@@ -254,6 +254,7 @@ probe CFG_MAKEINFO         makeinfo
 probe CFG_TEXI2PDF         texi2pdf
 probe CFG_TEX              tex
 probe CFG_MAKENSIS         makensis
+probe CFG_NATURALDOCS      naturaldocs
 
 if [ -z "$CFG_CLANG" -a -z "$CFG_GCC" ]
 then