我有几个存储共享变量的makefile,比如 CC=gcc ,我应该如何命名它们?
候选人是:
common.mk
Make.common
Makefile.common
..哪个更经典?有标准吗?
同样,我有一些shell脚本,我应该从以下中选择:
do_this_please.sh
do-this-please.sh
DoThisPlease.sh
doThisPlease.sh
是否有普遍接受的“大小写”和后缀?
最佳答案
Google 的开源风格使用下划线作为分隔符:https://google.github.io/styleguide/shellguide.html#s7.4-source-filenames .
所以在你的情况下,它会是 do_this_please.sh
或 do_this_please
使用这种风格。
关于linux - shell 脚本和 makefile 的命名约定,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1790496/