make: Add support for GNU make pattern rules
This commit is contained in:
parent
a11d67bb0b
commit
39f359b09a
@ -68,7 +68,7 @@ static int skipToNonWhite (int c)
|
|||||||
|
|
||||||
static boolean isIdentifier (int c)
|
static boolean isIdentifier (int c)
|
||||||
{
|
{
|
||||||
return (boolean)(c != '\0' && (isalnum (c) || strchr (".-_/$(){}", c) != NULL));
|
return (boolean)(c != '\0' && (isalnum (c) || strchr (".-_/$(){}%", c) != NULL));
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean isSpecialTarget (vString *const name)
|
static boolean isSpecialTarget (vString *const name)
|
||||||
|
@ -201,6 +201,7 @@ test_sources = \
|
|||||||
local.c \
|
local.c \
|
||||||
macros.c \
|
macros.c \
|
||||||
make-comment-in-rule.mak \
|
make-comment-in-rule.mak \
|
||||||
|
make-gnumake-pattern-rules.mak \
|
||||||
make-multi-target.mak \
|
make-multi-target.mak \
|
||||||
make-target-with-parentheses.mak \
|
make-target-with-parentheses.mak \
|
||||||
make-variable-on-cmdline.mak \
|
make-variable-on-cmdline.mak \
|
||||||
|
8
tests/ctags/make-gnumake-pattern-rules.mak
Normal file
8
tests/ctags/make-gnumake-pattern-rules.mak
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
%.o: %.c
|
||||||
|
touch $@
|
||||||
|
|
||||||
|
%.p %.q: %.d
|
||||||
|
touch $@
|
||||||
|
|
||||||
|
%a b%:
|
||||||
|
touch $@
|
6
tests/ctags/make-gnumake-pattern-rules.mak.tags
Normal file
6
tests/ctags/make-gnumake-pattern-rules.mak.tags
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# format=tagmanager
|
||||||
|
%.oÌ16Ö0
|
||||||
|
%.pÌ16Ö0
|
||||||
|
%.qÌ16Ö0
|
||||||
|
%aÌ16Ö0
|
||||||
|
b%Ì16Ö0
|
Loading…
x
Reference in New Issue
Block a user