Skip to content

How to ignore Makefiles? #5356

Answered by lildude
Therkelsen asked this question in Q&A
May 6, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

*/Makefile linguist-vendored=true
I honestly though the */Makefile would do the trick, is there another way I could do it?

You're almost there with this one. It's not quite doing what you want because * doesn't recurse (see previous discussions) so it will only match files like foo/Makefile, bar/Makefile, but not ano/dir/Makefile. I suspect all your files fall into the latter category.

To get the recursion you'd need to either use: **/Makefile linguist-vendored=true or just Makefile linguist-vendored=true.

As an aside, the =true is also optional so Makefile linguist-vendored will do the trick too.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Therkelsen
Comment options

Answer selected by Therkelsen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants