A function call can be either $(FUNCTION ARGUMENTS) or ${FUNCTION ARGUMENTS} If one of your arguments needs to have a comma or a brace,...
Example of a conditional: ifeq ($(CC),gcc) $(CC) -o foo $(objects) $(libs_for_gcc) else $(CC) -o foo $(objects) $(normal_libs) endif...
To refer to a variable, do either $(name) or ${name}. Now if you omit the parenthesis or the brace, like $abc, then this is interpreted...
The recipe of a rule consists of one or more shell command lines to be executed, one at a time, in the order they appear. Typically, the...
If you run make without a target, it picks the first target of the first rule. But a target beginning with a period cannot be the...
You can include other makefiles into the current one: include FILENAMES You can include variables and globs as filenames: include foo...
Rules The format of a rule is: TARGET ... : PREREQUISITES ... RECIPE ... ... The prerequisites are files that are required to run the...