diff options
author | Melody Horn <melody@boringcactus.com> | 2021-04-06 14:22:19 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2021-04-06 14:22:19 -0600 |
commit | 455b77bdbc78729c4175e27a949327c9836b8794 (patch) | |
tree | 4f19ff3d9195cad8989e6b12a75394ca86065b38 /src/main.rs | |
parent | 5a101a96ada9ddbd4be54c46cd7d0125825c2283 (diff) | |
download | makers-455b77bdbc78729c4175e27a949327c9836b8794.tar.gz makers-455b77bdbc78729c4175e27a949327c9836b8794.zip |
if an included makefile didn't exist, try building it
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 3d4b19d..c3cedee 100644 --- a/src/main.rs +++ b/src/main.rs @@ -62,11 +62,11 @@ fn main() -> Result<()> { if filename == &PathBuf::from("-") { let macros = makefile.macros.with_overlay(); let file = MakefileReader::read(&args, macros, stdin().lock())?.finish(); - makefile.extend(file); + makefile.extend(file)?; } else { let macros = makefile.macros.with_overlay(); let file = MakefileReader::read_file(&args, macros, filename)?.finish(); - makefile.extend(file); + makefile.extend(file)?; }; } |