Learn R Programming

fakemake (version 1.9.0)

read_makefile: Read a Makefile Into a Makelist

Description

This is experimental! See Note.

Usage

read_makefile(path, clean_sink = FALSE)

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.

Value

The makelist.

Examples

Run this code
# NOT RUN {
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