Learn R Programming

rmake (version 1.2.0)

subdirRule: Rule for running the make process on a subdirectory

Description

The subdirectory in the target argument is assumed to contain its own Makefile. This rule causes the execution of make <targetTask> in this subdirectory (where <targetTask> is the value of the targetTask argument).

Usage

subdirRule(target, depends = NULL, task = "all", targetTask = "all")

Value

An instance of S2 classs rmake.rule

Arguments

target

Name of the subdirectory

depends

Must be NULL

task

A character vector of parent task names. The mechanism of tasks allows to group rules. Anything different from 'all' will cause creation of a new task depending on the given rule. Executing make taskname will then force building of this rule.

targetTask

What task to execute in the subdirectory.

Author

Michal Burda

See Also

rule(), makefile()