Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / native_client_sdk / src / doc / Makefile
index 1b9f28b..24af1a8 100644 (file)
@@ -6,6 +6,7 @@ SPHINXOPTS    = -W
 SPHINXBUILD   = sphinx-build
 BUILDDIR      = _build
 CHROMESITE_BUILDDIR = $(realpath ../../doc_generated)
+PORT = 8000
 
 # User-friendly check for sphinx-build
 ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
@@ -21,6 +22,7 @@ all: chromesite
 
 help:
        @echo "Please use \`make <target>' where <target> is one of"
+       @echo "  html            to make standalone HTML files"
        @echo "  chromesite      build docs for developer.chrome.com"
        @echo "  chromesite_rst  only build .rst docs; no doxygen"
        @echo "  serve           start python web server for chromesite docs"
@@ -31,6 +33,11 @@ help:
 clean:
        rm -rf $(BUILDDIR)/*
 
+html:
+       $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
+       @echo
+       @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
+
 linkcheck:
        $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
        @echo
@@ -63,5 +70,5 @@ presubmit:
        -rm $(BUILDDIR)/.buildinfo
        $(SPHINXBUILD) -b chromesite $(ALLSPHINXOPTS) $(BUILDDIR)
 
-serve:
-       ../../../chrome/common/extensions/docs/server2/preview.py
+serve: chromesite_rst
+       ../../../chrome/common/extensions/docs/server2/preview.py -p $(PORT)