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.
This commit is contained in:
Paul Sokolovsky 2016-04-27 01:50:05 +03:00
parent 0df2ee0126
commit f3f5e975e4
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -21,7 +21,7 @@ preferably in a virtualenv:
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`.