aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-04-06 14:22:19 -0600
committerMelody Horn <melody@boringcactus.com>2021-04-06 14:22:19 -0600
commit455b77bdbc78729c4175e27a949327c9836b8794 (patch)
tree4f19ff3d9195cad8989e6b12a75394ca86065b38 /src/main.rs
parent5a101a96ada9ddbd4be54c46cd7d0125825c2283 (diff)
downloadmakers-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.rs4
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)?;
};
}