subdirRule: Rule for running the make process in a subdirectory

View source: R/subdirRule.R

subdirRuleR Documentation

Rule for running the make process in a subdirectory

Description

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

Usage

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

Arguments

target

Name of the subdirectory

depends

Must be NULL

task

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

targetTask

What task to execute in the subdirectory.

Value

An instance of S3 class rmake.rule

Author(s)

Michal Burda

See Also

rule(), makefile()


rmake documentation built on Nov. 12, 2025, 9:06 a.m.