From 4ccbd8ac0f85cb856c6477f6a93025b3cf2a388a Mon Sep 17 00:00:00 2001
From: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Date: Fri, 9 Oct 2020 00:10:42 +0200
Subject: [PATCH 4/5] relax mc.ext matching rules for makefiles
match the special cases first, and match makefiles irrespective of
extension. that is useful, as hand-written make-based build systems
often use qualifying suffixes, like .unix.
---
misc/mc.ext.in | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/misc/mc.ext.in b/misc/mc.ext.in
index b7f3d1d76..ea7886993 100644
a
|
b
|
regex/i/\.(epub|mobi)$ |
671 | 671 | shell/.class |
672 | 672 | View=%view{ascii} @EXTHELPERSDIR@/misc.sh view javaclass |
673 | 673 | |
674 | | # Makefile |
675 | | regex/^[Mm]akefile$ |
676 | | Open=make -f %f %{Enter parameters} |
677 | | |
678 | 674 | # Imakefile |
679 | 675 | shell/Imakefile |
680 | 676 | Open=xmkmf -a |
… |
… |
shell/Imakefile |
683 | 679 | regex/^Makefile\.(PL|pl)$ |
684 | 680 | Open=%var{PERL:perl} %f |
685 | 681 | |
| 682 | # Makefile |
| 683 | regex/[Mm]akefile |
| 684 | Open=make -f %f %{Enter parameters} |
| 685 | |
686 | 686 | # sqlite3.db |
687 | 687 | type/^SQLite 3.x database |
688 | 688 | Open=@EXTHELPERSDIR@/misc.sh open sqlite |