gpt4 book ai didi

bash - Makefile 中的食谱以破折号为前缀

转载 作者:行者123 更新时间:2023-12-05 06:25:51 26 4
gpt4 key购买 nike

<分区>

我看到在 Makefile 中的某些配方中,命令以“-”为前缀。例如:

食谱 A(“-if”中的“-”)

-if test "X$(topdir)" != "X$(BUILD_DIR)" ; then \
$(RM) parser-built y.tab.c y.tab.h ; \
fi

食谱 B

( cd $(DOCDIR) && $(MAKE) $(MFLAGS) $@ )
( cd builtins && $(MAKE) $(MFLAGS) $@ )
-( cd $(SDIR) && $(MAKE) $(MFLAGS) $@ )
-for libdir in ${LIB_SUBDIRS}; do \
(cd $$libdir && test -f Makefile && $(MAKE) $(MFLAGS) $@) ;\
done
-( cd $(PO_DIR) ; $(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) $@ )
$(RM) $(CREATED_SUPPORT)

食谱 C

-size $(Program)

一直试图了解它们是什么,但在 bash shell 和 GNU make 手册中都找不到任何内容。有谁知道他们的意思吗?它是 Bash 还是 Make 的特性?

P.S.:另外,括号是什么意思?例如。 -( … )

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