Skip to content

Commit 116ebe5

Browse files
committed
mk: Add docs to dist prep
For integrating doc upload into the dist-snap process
1 parent 92d8181 commit 116ebe5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

mk/dist.mk

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
# * dist-win - Windows exe installers
2121
# * dist-osx - OS X .pkg installers
2222
# * dist-tar-bins - Ad-hoc Unix binary installers
23+
# * dist-docs - Stage docs for upload
2324

2425
PKG_NAME = $(CFG_PACKAGE_NAME)
2526

@@ -185,6 +186,17 @@ $(foreach host,$(CFG_HOST),\
185186
$(eval $(call DEF_INSTALLER,$(host))))
186187

187188

189+
######################################################################
190+
# Docs
191+
######################################################################
192+
193+
# Just copy the docs to a folder under dist with the appropriate name
194+
# for uploading to S3
195+
dist-docs: docs compiler-docs
196+
$(Q) mkdir -p dist/doc/
197+
$(Q) cp -r doc dist/doc/$(CFG_PACKAGE_VERS)
198+
199+
188200
######################################################################
189201
# Primary targets (dist, distcheck)
190202
######################################################################

0 commit comments

Comments
 (0)