Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have c_parse_makefile look for GNUmakefile as well #3575

Merged
merged 2 commits into from
Feb 6, 2021

Conversation

hugomg
Copy link
Contributor

@hugomg hugomg commented Feb 3, 2021

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.

I'm putting this in a separate PR from #3574, because it's an unrelated feature request.
Again, I'm not sure if this needs adding tests as well. If it does then I can try to come back later to do that.

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.
Copy link
Contributor

@hsanson hsanson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding tests would be good but I am not too familiar with C tests. At least I think replicating the tests in test_c_flag_parsing.vader for the ale#c#GetMakeCommand() method should be added. Using a different sample project than makefile_project that uses the GNUMakefile instead of a Makefile.

@hugomg
Copy link
Contributor Author

hugomg commented Feb 4, 2021

Adding another test for ale#c#GetMakeCommand makes total sense. I'll try doing that later.

@hugomg
Copy link
Contributor Author

hugomg commented Feb 5, 2021

A quick question... Is there a way to run the test suite without using Docker? The documentation mentions using docker for the test suite but Docker is a bit tricky to install on Fedora, which is what I'm using now.

Copy link
Contributor

@hsanson hsanson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests seems in order. Thanks.

@hsanson hsanson merged commit b88d3c4 into dense-analysis:master Feb 6, 2021
@hugomg hugomg deleted the gnumakefile branch February 6, 2021 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants