I couldn't find anything in the GNU Makefile Conventions.
This is the implicit naming convention followed by GNU Makefile documentation:
Target names should use lower case letters. Words are separated with a hyphen -
or not separated. E.g.:
test-debug:
$(build_dir)/debug/bin
or
testdebug:
$(build_dir)/debug/bin
Variables which are not special to make or inherited from the environment should be in lowercase. Words should be separated with underscore symbol _
. E.g.:
src_dir = $(CURDIR)/src
build_dir = $(CURDIR)/build
References:
Makefile style guide (based on GNU Makefile documentation)
GNU Makefile Standard Targets
targets: you can find targets like install
, install-strip
, installcheck
variables: you can read "This includes the directories specified as the values of the variables prefix
and exec_prefix
" within the install
target documentation
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