Skip to content

Commit

Permalink
Add make install target in docs/site for copying output to emscript…
Browse files Browse the repository at this point in the history
  • Loading branch information
sbc100 authored Dec 9, 2019
1 parent 3f05b18 commit 85d040a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ that is:

1. In your emscripten repo checkout, enter `site`.
2. Run `make html`.
3. Run `cp -R build/html/* \[path-to-a-checkout-of-the-site-repo\]`
3. Run `make install EMSCRIPTEN_SITE=\[path-to-a-checkout-of-the-site-repo\]`
3. Go to the site repo, commit the changes, and push.

[site_repo]: https://github.com/kripken/emscripten-site
Expand Down
7 changes: 7 additions & 0 deletions site/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,17 @@ help:
@echo " pseudoxml to make pseudoxml-XML files for display purposes"
@echo " linkcheck to check all external links for integrity"
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
@echo ""
@echo " install install to emscripte-site directory (set \$$(EMSCRIPTEN_SITE))"

clean:
rm -rf $(BUILDDIR)/*

install: html
@ if [ -z "$(EMSCRIPTEN_SITE)" ]; then echo "Please set EMSCRIPTEN_SITE"; exit 1; fi
rm -rf $(EMSCRIPTEN_SITE)/docs $(EMSCRIPTEN_SITE)/_images $(EMSCRIPTEN_SITE)/_source $(EMSCRIPTEN_SITE)/_start
cp -R $(BUILDDIR)/html/* $(EMSCRIPTEN_SITE)

html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo
Expand Down

0 comments on commit 85d040a

Please sign in to comment.