summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autoload/ale/c.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/autoload/ale/c.vim b/autoload/ale/c.vim
index c7b1e20a..946eeca4 100644
--- a/autoload/ale/c.vim
+++ b/autoload/ale/c.vim
@@ -506,6 +506,10 @@ function! ale#c#GetMakeCommand(buffer) abort
if s:CanParseMakefile(a:buffer)
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)
let l:always_make = ale#Var(a:buffer, 'c_always_make')