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:
parent
0df2ee0126
commit
f3f5e975e4
@ -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)
|
||||||
|
@ -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…
Reference in New Issue
Block a user