]> git.lizzy.rs Git - rust.git/commitdiff
mk: Add docs to dist prep
authorBrian Anderson <banderson@mozilla.com>
Fri, 21 Mar 2014 20:37:09 +0000 (13:37 -0700)
committerBrian Anderson <banderson@mozilla.com>
Mon, 24 Mar 2014 21:29:16 +0000 (14:29 -0700)
For integrating doc upload into the dist-snap process

mk/dist.mk

index 60662c2a3d5b3579287e4d934d07af472e8e6b76..1954e325a5af4ec22fda0e5ed21c179f5d9946b7 100644 (file)
@@ -20,6 +20,7 @@
 # * dist-win - Windows exe installers
 # * dist-osx - OS X .pkg installers
 # * dist-tar-bins - Ad-hoc Unix binary installers
+# * dist-docs - Stage docs for upload
 
 PKG_NAME = $(CFG_PACKAGE_NAME)
 
@@ -185,6 +186,17 @@ $(foreach host,$(CFG_HOST),\
   $(eval $(call DEF_INSTALLER,$(host))))
 
 
+######################################################################
+# Docs
+######################################################################
+
+# Just copy the docs to a folder under dist with the appropriate name
+# for uploading to S3
+dist-docs: docs compiler-docs
+       $(Q) mkdir -p dist/doc/
+       $(Q) cp -r doc dist/doc/$(CFG_PACKAGE_VERS)
+
+
 ######################################################################
 # Primary targets (dist, distcheck)
 ######################################################################