From f4c6afe3eb48088fed57fb9fcc4dce44bd505234 Mon Sep 17 00:00:00 2001 From: zseri Date: Sat, 27 Mar 2021 08:14:31 +0100 Subject: boring changes --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 009fccf..e58188b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,14 +12,14 @@ fn main() { let mut args = Args::from_env_and_args(); // If no makefile is specified, try some options. if args.makefile.is_empty() { - if metadata("./makefile").is_ok() { - args.makefile = vec!["./makefile".into()]; + args.makefile = vec![if metadata("./makefile").is_ok() { + "./makefile".into() } else if metadata("./Makefile").is_ok() { - args.makefile = vec!["./Makefile".into()]; + "./Makefile".into() } else { // TODO handle error gracefully panic!("no makefile found"); - } + }]; } // Read in the makefile(s) specified. // TODO dump command-line args into MAKEFLAGS -- cgit v1.2.3