gpt4 book ai didi

linux - Makfile 选项的含义

转载 作者:太空宇宙 更新时间:2023-11-04 05:53:17 25 4
gpt4 key购买 nike

Makefile 的规则如下 -

SUBDIRS = foo bar baz

 subdirs:
for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir; \
done

里面有选项-C。谁能告诉我这个选项的作用是什么?

谢谢!

最佳答案

 -C dir, --directory=dir
Change to directory dir before reading the makefiles or doing anything else. If multiple -C options are specified, each is interpreted relative to the previous one: -C / -C etc is
equivalent to -C /etc. This is typically used with recursive invocations of make.

关于linux - Makfile 选项的含义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25205382/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com