I have a few makefiles that store shared variables, such as CC=gcc , how should I name them?
The candidates are:
common.mk
Make.common
Makefile.common
.. which is more classic? Is there a standard?
Similarly, I have some shell scripts, which should i choose among the following:
do_this_please.sh
do-this-please.sh
DoThisPlease.sh
doThisPlease.sh
Is there a generally accepted 'case' and suffix for these?
Google's open-source style uses underscores as separators: https://google.github.io/styleguide/shellguide.html#s7.4-source-filenames.
So in your case, it would be do_this_please.sh
or do_this_please
using this style.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With