MakefileR (version 1.0)

c.MakefileR_group: Concatenation of rules

Description

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

Usage

"c"(..., recursive = FALSE)
"+"(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

Run this code
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"))

Run the code above in your browser using DataLab