How to ignore Makefiles? #5356
-
Hey there guys I have a repo for my semester project at school, and it says it's majorily a Make repo due to the damn Makefiles that are generated.
I honestly though the */Makefile would do the trick, is there another way I could do it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You're almost there with this one. It's not quite doing what you want because To get the recursion you'd need to either use: As an aside, the |
Beta Was this translation helpful? Give feedback.
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 likefoo/Makefile
,bar/Makefile
, but notano/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 justMakefile linguist-vendored=true
.As an aside, the
=true
is also optional soMakefile linguist-vendored
will do the trick too.