Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: native_client_sdk/src/doc/Makefile

Issue 571943003: Add a PORT parameter to make serve command in the NaCl SDK Makefile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Makefile for Sphinx documentation 1 # Makefile for Sphinx documentation
2 # 2 #
3 3
4 # You can set these variables from the command line. 4 # You can set these variables from the command line.
5 SPHINXOPTS = -W 5 SPHINXOPTS = -W
6 SPHINXBUILD = sphinx-build 6 SPHINXBUILD = sphinx-build
7 BUILDDIR = _build 7 BUILDDIR = _build
8 CHROMESITE_BUILDDIR = $(realpath ../../doc_generated) 8 CHROMESITE_BUILDDIR = $(realpath ../../doc_generated)
9 PORT = 8000
9 10
10 # User-friendly check for sphinx-build 11 # User-friendly check for sphinx-build
11 ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1) 12 ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
12 $(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx in stalled, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory wit h the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/) 13 $(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx in stalled, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory wit h the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
13 endif 14 endif
14 15
15 # Internal variables. 16 # Internal variables.
16 ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(SPHINXOPTS) . 17 ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(SPHINXOPTS) .
17 18
18 .PHONY: all help clean linkcheck doctest chromesite chromesite_rst serve 19 .PHONY: all help clean linkcheck doctest chromesite chromesite_rst serve
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 -rm $(CHROMESITE_BUILDDIR)/.buildinfo 63 -rm $(CHROMESITE_BUILDDIR)/.buildinfo
63 $(SPHINXBUILD) -b chromesite $(ALLSPHINXOPTS) $(CHROMESITE_BUILDDIR) 64 $(SPHINXBUILD) -b chromesite $(ALLSPHINXOPTS) $(CHROMESITE_BUILDDIR)
64 rm -rf $(CHROMESITE_BUILDDIR)/images 65 rm -rf $(CHROMESITE_BUILDDIR)/images
65 cp -r $(CHROMESITE_BUILDDIR)/_images $(CHROMESITE_BUILDDIR)/images 66 cp -r $(CHROMESITE_BUILDDIR)/_images $(CHROMESITE_BUILDDIR)/images
66 rm -rf $(CHROMESITE_BUILDDIR)/{_images,searchindex.js} 67 rm -rf $(CHROMESITE_BUILDDIR)/{_images,searchindex.js}
67 68
68 presubmit: 69 presubmit:
69 -rm $(BUILDDIR)/.buildinfo 70 -rm $(BUILDDIR)/.buildinfo
70 $(SPHINXBUILD) -b chromesite $(ALLSPHINXOPTS) $(BUILDDIR) 71 $(SPHINXBUILD) -b chromesite $(ALLSPHINXOPTS) $(BUILDDIR)
71 72
72 serve: 73 serve: chromesite_rst
73 » ../../../chrome/common/extensions/docs/server2/preview.py 74 » ../../../chrome/common/extensions/docs/server2/preview.py -p $(PORT)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698