c.MakefileR_group {MakefileR}R Documentation

Concatenation of rules

Description

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

Usage

## 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

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"))

[Package MakefileR version 1.0 Index]