summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2016-12-10 14:21:29 +0000
committerChristos Zoulas <christos@zoulas.com>2016-12-10 14:21:29 +0000
commit2d6b0edf8a76aa889abf1f8f287a4aae8578ed7d (patch)
treeaf6299ff1f9dfae3ff5126fcef45c7df248850eb
parent3d85a3a2bd7169029f750dd8af9e68000b221c47 (diff)
downloadfile-git-2d6b0edf8a76aa889abf1f8f287a4aae8578ed7d.tar.gz
Escape the . and provide more text for BSD make (Joerg Jenderek)
-rw-r--r--magic/Magdir/make18
1 files changed, 13 insertions, 5 deletions
diff --git a/magic/Magdir/make b/magic/Magdir/make
index f8509d6b..2895325a 100644
--- a/magic/Magdir/make
+++ b/magic/Magdir/make
@@ -1,7 +1,8 @@
#------------------------------------------------------------------------------
-# $File: make,v 1.2 2015/08/25 07:34:06 christos Exp $
+# $File: make,v 1.3 2016/12/10 14:21:29 christos Exp $
# make: file(1) magic for makefiles
#
+# URL: https://en.wikipedia.org/wiki/Make_(software)
0 regex/100l \^CFLAGS makefile script text
!:mime text/x-makefile
0 regex/100l \^VPATH makefile script text
@@ -10,12 +11,19 @@
!:mime text/x-makefile
0 regex/100l \^all: makefile script text
!:mime text/x-makefile
-0 regex/100l \^\.PRECIOUS makefile script text
+0 regex/100l \^\\.PRECIOUS makefile script text
!:mime text/x-makefile
-0 regex/100l \^\.BEGIN BSD makefile script text
+# Update: Joerg Jenderek
+# Reference: https://www.freebsd.org/cgi/man.cgi?make(1)
+# exclude grub-core\lib\libgcrypt\mpi\Makefile.am with "#BEGIN_ASM_LIST"
+# by additional escaping point character
+0 regex/100l \^\\.BEGIN BSD makefile script text with "%s"
!:mime text/x-makefile
-0 regex/100l \^\.include BSD makefile script text
+!:ext /mk
+# exclude MS Windows help file CoNtenT with ":include FOOBAR.CNT"
+# and NSIS script with "!include" by additional escaping point character
+0 regex/100l \^\\.include BSD makefile script text with "%s"
!:mime text/x-makefile
-
+!:ext /mk
0 regex/100l \^SUBDIRS automake makefile script text
!:mime text/x-makefile