read_makefile {fakemake} | R Documentation |
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 |
Value
The makelist
.
Note
This function will not read arbitrary Makefiles
, just those
created via write_makefile
! If you modify such a
Makefile
make sure you only add simple rules like the ones you see in that file.
Examples
make_file <- file.path(tempdir(), "Makefile")
write_makefile(provide_make_list(), path = make_file)
str(make_list <- read_makefile(path = make_file))
[Package fakemake version 1.11.1 Index]