Concatenation: Concatenation of rules

Description Usage Arguments Examples

Description

Rules can be appended to groups and Makefiles using the c function or the + operator.

Usage

1
2
3
4
5
## S3 method for class 'MakefileR_group'
c(..., recursive = FALSE)

## S3 method for class 'MakefileR_group'
x + y

Arguments

..., x, y

[MakefileR]
Rules, the first (x or the first element of ...) must be of class MakefileR_group (created by make_group or makefile)

recursive

[any]
Unused

Examples

1
2
3
4
5
6
7
c(make_group(sep = ""),
  make_group(make_comment("Dummy targets"),
             make_rule(".FORCE"), make_rule(".SILENT")),
  make_group(make_comment("Definitions"),
             make_def("A", "a")))

makefile() + (make_group() + make_comment("Definitions") + make_def("A", "a"))

MakefileR documentation built on May 1, 2019, 10:30 p.m.