Fix run target documentation. Closes #1793.

pull/3012/merge
Jussi Pakkanen 7 years ago
parent 6f510ca695
commit 4637cf4e95
  1. 7
      docs/markdown/Reference-manual.md

@ -945,13 +945,16 @@ respectively.
### run_target ### run_target
``` meson ``` meson
buildtarget run_target(target_name, ...) runtarget run_target(target_name, ...)
``` ```
This function creates a new top-level target that runs a specified This function creates a new top-level target that runs a specified
command with the specified arguments. Like all top-level targets, this command with the specified arguments. Like all top-level targets, this
integrates with the selected backend. For instance, with Ninja you can integrates with the selected backend. For instance, with Ninja you can
run it as `ninja target_name`. run it as `ninja target_name`. Note that a run target produces no
output as far as Meson is concerned. It is only meant for tasks such
as running a code formatter or flashing an external device's firmware
with a built file.
The script is run from an *unspecified* directory, and Meson will set The script is run from an *unspecified* directory, and Meson will set
three environment variables `MESON_SOURCE_ROOT`, `MESON_BUILD_ROOT` three environment variables `MESON_SOURCE_ROOT`, `MESON_BUILD_ROOT`

Loading…
Cancel
Save