开发者

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

开发者 https://www.devze.com 2023-03-15 17:34 出处:网络
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开发者_StackOver

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

精彩评论

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