Learn R Programming

fakemake (version 1.11.1)

read_makefile: Read a Makefile Into a Makelist

Description

This is experimental! See Note.

Usage

read_makefile(path, clean_sink = FALSE)

Value

The makelist.

Arguments

path

The path to the file.

clean_sink

Remove sinks identical to corresponding targets from the list? Since makelists are parsed, missing sinks are set to the corresponding targets, but this makes them harder to read.

Examples

Run this code
make_file <- file.path(tempdir(), "Makefile")
write_makefile(provide_make_list(), path = make_file)
str(make_list <- read_makefile(path = make_file))

Run the code above in your browser using DataLab