Concatenation of rules

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

Description

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

Examples

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")))
# Dummy targets .FORCE: .SILENT: # Definitions A=a
makefile() + (make_group() + make_comment("Definitions") + make_def("A", "a"))
# Generated by MakefileR, do not edit by hand # Definitions A=a