开发者

Is there a way to get the * command to ignore certain entries?

I have a lot of a files in one of my folders that I need *.c to compile them in my Makefile, but I want to exclude one of them for now. Is there anyway to still use *.c but ignore a spe开发者_StackOverflowcific file?


How about:

SOURCES := $(filter-out foo.c,$(wildcard *.c))
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜