Improve docs for env's "target" option

This commit is contained in:
Ivan Kravets
2015-06-28 20:38:37 +03:00
parent 1af6eba151
commit b80c525952
2 changed files with 19 additions and 5 deletions

View File

@ -432,11 +432,25 @@ See built-in examples of `PlatformIO build scripts <https://github.com/platformi
A list with targets which will be processed by :ref:`cmd_run` command by
default. You can enter more then one target separated with "space".
When no targets are defined, *PlatformIO* will build only sources by default.
Pre-built targets:
.. note::
This option is useful to enable "auto-uploading" after building operation
(``targets = upload``).
* ``clean`` delete compiled object files, libraries and firmware binaries
* ``upload`` enable "auto-uploading" for embedded platforms after building
operation
* ``envdump`` dump current build environment
**Tip!** You can use these targets like an option to
:option:`platformio run --target` command. For example:
.. code-block:: bash
# clean project
platformio run -t clean
# dump curent build environment
platformio run --target envdump
When no targets are defined, *PlatformIO* will build only sources by default.
.. _projectconf_examples:

View File

@ -1,7 +1,7 @@
# Copyright (C) Ivan Kravets <me@ikravets.com>
# See LICENSE for details.
VERSION = (2, 2, "0.dev5")
VERSION = (2, 2, "0.dev6")
__version__ = ".".join([str(s) for s in VERSION])
__title__ = "platformio"