Have c_parse_makefile look for GNUmakefile as well
Makefiles using GNU-make features might be called "GNUmakefile" instead of "Makefile". This commit teaches the `c_parse_makefile` feature to look for a GNUmakefile file if a Makefile is not present.
This commit is contained in:
parent
9b5c090473
commit
4c7e843fd0
1 changed files with 4 additions and 0 deletions
|
@ -506,6 +506,10 @@ function! ale#c#GetMakeCommand(buffer) abort
|
||||||
if s:CanParseMakefile(a:buffer)
|
if s:CanParseMakefile(a:buffer)
|
||||||
let l:path = ale#path#FindNearestFile(a:buffer, 'Makefile')
|
let l:path = ale#path#FindNearestFile(a:buffer, 'Makefile')
|
||||||
|
|
||||||
|
if empty(l:path)
|
||||||
|
let l:path = ale#path#FindNearestFile(a:buffer, 'GNUmakefile')
|
||||||
|
endif
|
||||||
|
|
||||||
if !empty(l:path)
|
if !empty(l:path)
|
||||||
let l:always_make = ale#Var(a:buffer, 'c_always_make')
|
let l:always_make = ale#Var(a:buffer, 'c_always_make')
|
||||||
|
|
||||||
|
|
Reference in a new issue