Merge pull request #3575 from hugomg/gnumakefile

Have c_parse_makefile look for GNUmakefile as well
This commit is contained in:
Horacio Sanson
2021-02-06 21:31:16 +09:00
committed by GitHub
4 changed files with 12 additions and 0 deletions

View File

@@ -38,6 +38,14 @@ Execute(The make command should be correct):
\ . 'make -n',
\ ale#c#GetMakeCommand(bufnr(''))
Execute(Should recognize GNUmakefile as a makefile):
call ale#test#SetFilename('test_c_projects/gnumakefile_project/file.c')
AssertEqual
\ ale#path#CdString(ale#path#Simplify(g:dir. '/test_c_projects/gnumakefile_project'))
\ . 'make -n --always-make',
\ ale#c#GetMakeCommand(bufnr(''))
Execute(The CFlags parser should be able to parse include directives):
call ale#test#SetFilename('test_c_projects/makefile_project/subdir/file.c')