mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-16 11:01:29 +08:00
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:
1 parent
9b5c090473
commit
4c7e843fd0
1 file changed
+4
@@ -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 new issue
Block a user