From 0a8a1c27bcba8544bc8e910bc19cd765992aac2f Mon Sep 17 00:00:00 2001 From: Christoph Badura Date: Sat, 29 Jun 2024 00:21:08 +0200 Subject: [PATCH 1/2] ignore: add Makefile.inc to make type The *BSD build systems make use of "Makefile.inc" a lot. Make the "make" type recognize this file by default. --- crates/ignore/src/default_types.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs index 2cf8ad807..8e1e84eed 100644 --- a/crates/ignore/src/default_types.rs +++ b/crates/ignore/src/default_types.rs @@ -159,6 +159,7 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[ "[Gg][Nn][Uu]makefile", "[Mm]akefile", "[Gg][Nn][Uu]makefile.am", "[Mm]akefile.am", "[Gg][Nn][Uu]makefile.in", "[Mm]akefile.in", + "[Mm]akefile.inc", "*.mk", "*.mak" ]), (&["mako"], &["*.mako", "*.mao"]), From 249257b1c63186d23af4d557b11328754f537116 Mon Sep 17 00:00:00 2001 From: Christoph Badura Date: Sun, 28 Jul 2024 19:46:04 +0200 Subject: [PATCH 2/2] Update default_types.rs: switch from [Mm]akefile.inc to Makefile.* as per @okdana's suggestion. --- crates/ignore/src/default_types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs index 8e1e84eed..ad378e28a 100644 --- a/crates/ignore/src/default_types.rs +++ b/crates/ignore/src/default_types.rs @@ -159,7 +159,7 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[ "[Gg][Nn][Uu]makefile", "[Mm]akefile", "[Gg][Nn][Uu]makefile.am", "[Mm]akefile.am", "[Gg][Nn][Uu]makefile.in", "[Mm]akefile.in", - "[Mm]akefile.inc", + "Makefile.*", "*.mk", "*.mak" ]), (&["mako"], &["*.mako", "*.mao"]),