aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorzseri <zseri.devel@ytrizja.de>2021-03-27 08:14:31 +0100
committerzseri <zseri.devel@ytrizja.de>2021-03-27 08:14:31 +0100
commitf4c6afe3eb48088fed57fb9fcc4dce44bd505234 (patch)
tree617baa7876ab235938668a313273c64f52fc78a1 /src/main.rs
parent27c119a252c01a621368624a9ab3e8efd9f18faf (diff)
downloadmakers-f4c6afe3eb48088fed57fb9fcc4dce44bd505234.tar.gz
makers-f4c6afe3eb48088fed57fb9fcc4dce44bd505234.zip
boring changes
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs8
1 files changed, 4 insertions, 4 deletions
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