From 455b77bdbc78729c4175e27a949327c9836b8794 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Tue, 6 Apr 2021 14:22:19 -0600 Subject: if an included makefile didn't exist, try building it --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.rs') 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)?; }; } -- cgit v1.2.3