Previous: , Up: General ideas   [Contents][Index]


2.5 How derived variables are named

Sometimes a Makefile variable name is derived from some text the user supplies. For instance, program names are rewritten into Makefile macro names. Automake canonicalizes this text, so that it does not have to follow Makefile macro naming rules. All characters in the name except for letters, numbers, and the underscore are turned into underscores when making macro references. For example, if your program is named sniff-glue, the derived variable name would be sniff_glue_SOURCES, not sniff-glue_SOURCES.