parse_makefile: Extract targets and dependencies from a Makefile

Description Usage Arguments Details Value

View source: R/parse_make.R

Description

The function tries to identify all rules contained in a Makefile, returning a tidy data frame with a mapping between targets and dependencies. Each rule from the Makefile is thus transformed to give one row per dependency. The original Makefile rules are preserved in the columns <c2><b4>rule_id' and 'rule'.

Usage

1
parse_makefile(makefile = "Makefile")

Arguments

makefile

A filename or file connection specifying the Makefile (Default: "Makefile")

Details

No attempt is made to fully parse the Makefile according to the GNU make specification. In particular, the following elements are ignored: imported files, commands, comments, variables.

Value

a tibble


edonnachie/makeutils documentation built on May 27, 2019, 2:09 p.m.