Browse Source

docs/Makefile: Default BUILDDIR based on MICROPY_PORT.

It doesn't make sense to duplicate both on command line, and MICROPY_PORT
is effectively mandatory to build docs.
pull/2015/head
Paul Sokolovsky 9 years ago
parent
commit
f3f5e975e4
  1. 2
      docs/Makefile
  2. 2
      docs/README.md

2
docs/Makefile

@ -5,7 +5,7 @@
SPHINXOPTS = SPHINXOPTS =
SPHINXBUILD = sphinx-build SPHINXBUILD = sphinx-build
PAPER = PAPER =
BUILDDIR = build BUILDDIR = build/$(MICROPY_PORT)
# User-friendly check for sphinx-build # User-friendly check for sphinx-build
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1) ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)

2
docs/README.md

@ -21,7 +21,7 @@ preferably in a virtualenv:
In `micropython/docs`, build the docs: In `micropython/docs`, build the docs:
make MICROPY_PORT=<port_name> BUILDDIR=build/<port_name> html make MICROPY_PORT=<port_name> html
Where `<port_name>` can be `unix`, `pyboard`, `wipy` or `esp8266`. Where `<port_name>` can be `unix`, `pyboard`, `wipy` or `esp8266`.

Loading…
Cancel
Save