aim()
looks for an existing Makefile
, reads its content, and offers a
list of discovered Makefile
targets (denoting build scripts, in our case),
all in an interactive way. When the session is not interactive, or you know
the name of the desired target, you can declare it directly in the target
argument.
Arguments
- target
Character. The name of the Makefile target to set.
Value
No return value. Called for side effects.
See also
Other functions from buildr trinity:
build()
,
init()
Examples
if (FALSE) {
# We have several build scripts in our project root
# and we want to select script called "build_all.R":
aim(target = "all") # note that "build_" is stripped out by default
}